Hi,
I'm tryng to move a file to Windows/SysWOW64
How can I do?
Have I to manage admin rights? How?
How is the path? WinDir or have I to use the normal path (C:\Windows\SysWOW64 ecc)?
Thanks.
New: Kanri (Oct 9, '24), Platform 29.5.3 (Jun 27, '24)
1,100+ portable packages, 1.1 billion downloads
No Ads November!, Please donate today
The app is 32 bit or 64 bit?
SysWOW64...
It's a 64 bit!
I know SysWOW64 only exists in 64 bit Windows. But I am asking the bit of the application not the os. If the app is 64 bit then is the file you want to move also 64 bit?
Sorry I forgot PAL is 32 bit.
Create a Custom.nsh file with the following content and put it in the same directory of the launcher ini.
${SegmentFile}
${SegmentInit}
${SetEnvironmentVariablesPath} SYSDIR $SYSDIR
!macroend
In launcher ini:
[Launch]
RunAsAdmin=force
[FilesMove]
yourfile.ext=%SYSDIR%
Assume yourfile.ext is in Data directory.
Thanks.
Until tomorrow after, I couldn't test your code, so, I'll let you know soon...
If the program were in 32 bit what have I to do? (could be good for the next time)...
32 bit file alway go to SysWOW64 in 64 bit system. My code should work for 32 bit program too. However my code will not work for 64 bit file need to go to System32 directory in 64 bit system.
I don't understand...
I've followed step-by-step your instruction, but the files don't move.
(Is the same behaviour I obtained writing it with NSIS directly).
May this is a bug in NSIS?
What program are you portablelizing?
They are various driver.
Printer, scanner, etc.
Printer and scanner dirvers are not portable. Your portable drivers can't move because the local one are in used, and cannot be rename. It is no use even your portable drivers can be moved because you need to restart your machine to make the drivers work.