Notepad Replacement install : Error opening file for writing
- Author
- Message
-
Offline
- Posts: 14
- Joined: Fri Nov 22, 2013 10:48 am
Notepad Replacement install : Error opening file for writing
Hello,
When I choose the notepad replacement installation, I've got an error during install :
I'm under Win 8.1 x64
Is the fix known ? else i will submit the bug to the developer
Thanks for your help[/img]
When I choose the notepad replacement installation, I've got an error during install :
I'm under Win 8.1 x64
Is the fix known ? else i will submit the bug to the developer
Thanks for your help[/img]
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
Tux1
Can you try test version of setup? What messages you have (you can press Ctrl+C when message is shown to copy text of the message to clipboard)?
Can you try test version of setup? What messages you have (you can press Ctrl+C when message is shown to copy text of the message to clipboard)?
-
Offline
- Posts: 14
- Joined: Fri Nov 22, 2013 10:48 am
Thanks for your help.
Below the log :
Below the log :
---------------------------
AkelPad 4.8.6-x64 Setup
---------------------------
(0) takeown.exe /F C:\WINDOWS\notepad.exe
---------------------------
OK
---------------------------
---------------------------
AkelPad 4.8.6-x64 Setup
---------------------------
(0) takeown.exe /F C:\WINDOWS\system32\notepad.exe
---------------------------
OK
---------------------------
---------------------------
AkelPad 4.8.6-x64 Setup
---------------------------
(0) takeown.exe /F C:\WINDOWS\SysWOW64\notepad.exe
---------------------------
OK
---------------------------
---------------------------
AkelPad 4.8.6-x64 Setup
---------------------------
(0) C:\WINDOWS\system32\cmd.exe /c echo y|cacls.exe C:\WINDOWS\notepad.exe /G "Charles":F
---------------------------
OK
---------------------------
---------------------------
AkelPad 4.8.6-x64 Setup
---------------------------
(0) C:\WINDOWS\system32\cmd.exe /c echo y|cacls.exe C:\WINDOWS\system32\notepad.exe /G "Charles":F
---------------------------
OK
---------------------------
---------------------------
AkelPad 4.8.6-x64 Setup
---------------------------
(0) C:\WINDOWS\system32\cmd.exe /c echo y|cacls.exe C:\WINDOWS\SysWOW64\notepad.exe /G "Charles":F
---------------------------
OK
---------------------------
---------------------------
AkelPad 4.8.6-x64 Setup
---------------------------
Error opening file for writing:
C:\WINDOWS\notepad.exe
Click Abort to stop the installation,
Retry to try again, or
Ignore to skip this file.
---------------------------
Abandonner Recommencer Ignorer
---------------------------
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
Next test:
Open command prompt (cmd.exe). Run commands manually:What console output will be (to copy text from console to clipboard: press right button, choose "Select all" and press right button again)?
Open command prompt (cmd.exe). Run commands manually:
Code: Select all
takeown.exe /F C:\WINDOWS\notepad.exe
Code: Select all
C:\WINDOWS\system32\cmd.exe /c echo y|cacls.exe C:\WINDOWS\notepad.exe /G "Charles":F
-
Offline
- Posts: 14
- Joined: Fri Nov 22, 2013 10:48 am
I run those as administrator.
First output :
Second output :
Thank you
First output :
Translation : Operation successfulled : the file "C:/xxxx" is owned by the user "PC-xxx" (it's me)Opération réussie : le fichier (ou dossier) : "C:\WINDOWS\notepad.exe" appartient désormais à l’utilisateur "PC-CHARLES\Charles".
Second output :
file handled : C:\....xxxC:\WINDOWS\system32>C:\WINDOWS\system32\cmd.exe /c echo o|cacls.exe C:\WINDOWS\n
otepad.exe /G "Charles":F
Êtes-vous sûr (O/N) ?fichier traité : C:\WINDOWS\notepad.exe
Thank you
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
Now I see whats happening. Command:
not working for you, because you have prompt "(O/N)", but command send "echo y". You changed command to "echo o" and it start to work. I updated installer to use icacls.exe, if possible. Can you try to install it? If any error happens post a screenshot.
Code: Select all
C:\WINDOWS\system32\cmd.exe /c echo y|cacls.exe C:\WINDOWS\notepad.exe /G "Charles":F
-
Offline
- Posts: 14
- Joined: Fri Nov 22, 2013 10:48 am
Exactly ! (Oui = Yes)Instructor wrote:Now I see whats happening. Command:not working for you, because you have prompt "(O/N)", but command send "echo y". You changed command to "echo o" and it start to work. I updated installer to use icacls.exe, if possible. Can you try to install it? If any error happens post a screenshot.Code: Select all
C:\WINDOWS\system32\cmd.exe /c echo y|cacls.exe C:\WINDOWS\notepad.exe /G "Charles":F
I try it right now
EDIT :
So, the install performed without any warning or error, however it runs automatically notepad showing "The specified pathfile is unknown"
You can see the screenshot : http://image.noelshack.com/fichiers/201 ... apture.png
I don't get any more information... sorry
-
Offline
- Posts: 14
- Joined: Fri Nov 22, 2013 10:48 am
It's cacls used. with 'y' furthermore...
---------------------------
AkelPad 4.8.6-x64 Setup
---------------------------
(0) C:\WINDOWS\system32\cmd.exe /c echo y|cacls.exe C:\WINDOWS\notepad.exe /G "Charles":F
---------------------------
OK
---------------------------
---------------------------
AkelPad 4.8.6-x64 Setup
---------------------------
(0) C:\WINDOWS\system32\cmd.exe /c echo y|cacls.exe C:\WINDOWS\SysWOW64\notepad.exe /G "Charles":F
---------------------------
OK
---------------------------
---------------------------
AkelPad 4.8.6-x64 Setup
---------------------------
(0) C:\WINDOWS\system32\cmd.exe /c echo y|cacls.exe C:\WINDOWS\notepad.exe /G "Charles":F
---------------------------
OK
---------------------------
---------------------------
AkelPad 4.8.6-x64 Setup
---------------------------
(0) C:\WINDOWS\system32\cmd.exe /c echo y|cacls.exe C:\WINDOWS\SysWOW64\notepad.exe /G "Charles":F
---------------------------
OK
---------------------------