Matt Seymour
Matt Seymour

Reputation: 9395

NSIS batch file permissions

I have a batch file which modifies some files within program files upon installation of an application using NSIS.

The issue I currently have is that NSIS is not running the batch file with administrator permissions so the script fails.

Is it possible to run the script with the required admin permission set?

It must support the OS XP+, and the batch script is run from an NSIS installer.

Upvotes: 0

Views: 1836

Answers (2)

Slappy
Slappy

Reputation: 5472

How do you execute your batch? Exec, ExecShell or nsExec?

Try changing it or paste snippet of your code here.

Upvotes: 0

Daniel N
Daniel N

Reputation: 417

Is the NSIS installer being ran with administrator permissions? If so, any process that the installer starts will also have administrator permissions.

Check out Ander's answer on how to request admin rights for your installer:

https://stackoverflow.com/a/8735349/1030416

Upvotes: 3

Related Questions