Environmental variables - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

gsimpson
Posts: 13
Joined: Sat Dec 31, 2011 8:13 pm

Environmental variables

Hello,

Question regarding Environmental Variables.
I am trying to refer to just the Administrator's desktop.

What I have done is to create a new property called ADMIN_DESKTOP_VISTA and assigned it the value C:\Users\administrator\Desktop.
This was done in Install Parameters under Properties. Since I really dont know what the system will be installed on, I wanted to use the %SystemDrive% environmental variable to specify the Drive letter. How can I put that variable in the Value?

Thanks,
Greg
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Environmental variables

Hi Greg,

You can also use the property "WindowsVolume", that is resolved by the OS on the partition on which the OS is installer.

To set the property you can use the predefined custom action "Property Set with formatted", under Begin standard actions from InstallUI and InstallExecute sequences, Custom Actions page.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”