tags:

views:

110

answers:

1

Dear all,

I have two problems with INNO Setup?

  1. How do I check if an env. variable exists and has a value? (I'm interested in %VS90COMNTOOLS%)

  2. How do I run the installer with elevated rights? (Display the UAC window and ask for more rights)

Thanks, Jan

+3  A: 

For 1, you can use the built-in Pascal script and the API function GetEnvironmentVariable() documented via MSDN.

For 2, name your executable Setup.exe, or use the [Setup] section's PrivilegesRequired entry as documented in InnoSetup's FAQ page.

Ken White
Thank you! That solved my problem
Jav