AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Notepad Replacement install : Error opening file for writing
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English)
View previous topic :: View next topic  
Author Message
Tux1



Joined: 22 Nov 2013
Posts: 14

PostPosted: Fri Nov 22, 2013 10:54 am    Post subject: Notepad Replacement install : Error opening file for writing Reply with quote

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]
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5399

PostPosted: Sun Nov 24, 2013 6:50 am    Post subject: Reply with quote

Tux1
I have not even seen Win8, but try to right click on "AkelPad-4.8.5-x64-setup.exe" and choose "Run as administrator".
Back to top
View user's profile Send private message Send e-mail
Tux1



Joined: 22 Nov 2013
Posts: 14

PostPosted: Sun Nov 24, 2013 11:56 am    Post subject: Reply with quote

I tried, it didnt work
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5399

PostPosted: Sun Nov 24, 2013 2:30 pm    Post subject: Reply with quote

Is there any non-latin characters in your Windows user name?
Back to top
View user's profile Send private message Send e-mail
Tux1



Joined: 22 Nov 2013
Posts: 14

PostPosted: Sun Nov 24, 2013 3:33 pm    Post subject: Reply with quote

No, my username is just "Charles"
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5399

PostPosted: Mon Nov 25, 2013 8:26 am    Post subject: Reply with quote

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)?
Back to top
View user's profile Send private message Send e-mail
Tux1



Joined: 22 Nov 2013
Posts: 14

PostPosted: Mon Nov 25, 2013 10:02 pm    Post subject: Reply with quote

Thanks for your help.
Below the log :
Quote:
---------------------------
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
---------------------------
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5399

PostPosted: Tue Nov 26, 2013 3:27 pm    Post subject: Reply with quote

Next test:
Open command prompt (cmd.exe). Run commands manually:
Code:
takeown.exe /F C:\WINDOWS\notepad.exe
Code:
C:\WINDOWS\system32\cmd.exe /c echo y|cacls.exe C:\WINDOWS\notepad.exe /G "Charles":F
What console output will be (to copy text from console to clipboard: press right button, choose "Select all" and press right button again)?
Back to top
View user's profile Send private message Send e-mail
Tux1



Joined: 22 Nov 2013
Posts: 14

PostPosted: Wed Nov 27, 2013 8:01 pm    Post subject: Reply with quote

I run those as administrator.
First output :
Quote:
Opération réussie : le fichier (ou dossier) : "C:\WINDOWS\notepad.exe" appartient désormais à l’utilisateur "PC-CHARLES\Charles".

Translation : Operation successfulled : the file "C:/xxxx" is owned by the user "PC-xxx" (it's me)

Second output :
Quote:
C:\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

file handled : C:\....xxx

Thank you
Back to top
View user's profile Send private message
Tux1



Joined: 22 Nov 2013
Posts: 14

PostPosted: Wed Nov 27, 2013 8:24 pm    Post subject: Reply with quote

I tried to install again Akelpad after having put your command and there are no longer error during install but at the end notepad is openning with a msgbox "Le chemin d'accès est introuvable" (the pathfile is unknown)
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5399

PostPosted: Thu Nov 28, 2013 4:58 am    Post subject: Reply with quote

Now I see whats happening. Command:
Code:
C:\WINDOWS\system32\cmd.exe /c echo y|cacls.exe C:\WINDOWS\notepad.exe /G "Charles":F
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.
Back to top
View user's profile Send private message Send e-mail
Tux1



Joined: 22 Nov 2013
Posts: 14

PostPosted: Thu Nov 28, 2013 9:03 am    Post subject: Reply with quote

Instructor wrote:
Now I see whats happening. Command:
Code:
C:\WINDOWS\system32\cmd.exe /c echo y|cacls.exe C:\WINDOWS\notepad.exe /G "Charles":F
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.


Exactly ! (Oui = Yes)
I try it right now Very Happy

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/2013/48/1385629709-capture.png
I don't get any more information... sorry
Back to top
View user's profile Send private message
Tux1



Joined: 22 Nov 2013
Posts: 14

PostPosted: Thu Nov 28, 2013 9:45 am    Post subject: Reply with quote

I think your installer still uses cacls and not icacls
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5399

PostPosted: Thu Nov 28, 2013 1:29 pm    Post subject: Reply with quote

This version will show what exe is used - cacls or icacls.
Back to top
View user's profile Send private message Send e-mail
Tux1



Joined: 22 Nov 2013
Posts: 14

PostPosted: Thu Nov 28, 2013 4:12 pm    Post subject: Reply with quote

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
---------------------------
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group