You are here

Admin rights

11 posts / 0 new
Last post
Gaber
Offline
Last seen: 3 years 10 months ago
Joined: 2017-07-16 15:33
Admin rights

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.

JLim
Offline
Last seen: 2 weeks 4 days ago
Joined: 2013-07-17 01:30
The app is 32 bit or 64 bit?

The app is 32 bit or 64 bit?

Gaber
Offline
Last seen: 3 years 10 months ago
Joined: 2017-07-16 15:33
SysWOW64...is a 64 bit!

SysWOW64...

It's a 64 bit!

JLim
Offline
Last seen: 2 weeks 4 days ago
Joined: 2013-07-17 01:30
I know SysWOW64 only exists

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?

JLim
Offline
Last seen: 2 weeks 4 days ago
Joined: 2013-07-17 01:30
Sorry I forgot PAL is 32 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.

Gaber
Offline
Last seen: 3 years 10 months ago
Joined: 2017-07-16 15:33
Thanks.

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)...

JLim
Offline
Last seen: 2 weeks 4 days ago
Joined: 2013-07-17 01:30
32 bit file alway go to

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.

Gaber
Offline
Last seen: 3 years 10 months ago
Joined: 2017-07-16 15:33
I don't understand...

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?

JLim
Offline
Last seen: 2 weeks 4 days ago
Joined: 2013-07-17 01:30
What program are you

What program are you portablelizing?

Gaber
Offline
Last seen: 3 years 10 months ago
Joined: 2017-07-16 15:33
They are various driver.

They are various driver.

Printer, scanner, etc.

JLim
Offline
Last seen: 2 weeks 4 days ago
Joined: 2013-07-17 01:30
Printer and scanner dirvers

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.

Log in or register to post comments