BobCrothers
Posts: 66
Joined: Wed Dec 05, 2007 10:58 pm

Append APPDIR to the path

Hi AI Forum,

We have an install program which simply copies files, and set some registry values. I would like to append [APPDIR]bin to the path. As an example, if the files are installed/coped to c:\foo, I would like to append c:\foo\bin to the path. I have setup the environment variable but it seems that [APPDIR] is not defined or set at the time of appending to the path. "bin" is appended but the install directory is not appended to the path. Also I see there is no property button in the Edit Environment Variable dialog. This seems like a common problem, is there a work around?

Using AI 8.8.1
Installing on Windows XP

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

Re: Append APPDIR to the path

Hi Bob,

The property button is not available because of the small size of the dialog, but the "Value" field is formatted and support properties like "[APPDIR]". Just press
'[' in the edit control and you will see a special context menu appearing, which normally happens for formatted fields.

I am not sure why the value is not correctly resolved and append to the environment variable. Can you please send us the aip file and a verbose log to support at advancedinstaller dot com so we can investigate them?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
BobCrothers
Posts: 66
Joined: Wed Dec 05, 2007 10:58 pm

Re: Append APPDIR to the path

Thanks Bogdan,

Setting the path is now working! I'm not sure why it did not work before. I deleted the environment var, and created a new path environment variable. This time when adding the [APPDIR], I did as just suggested. previously I had just been typing [APPDIR] without the context menu.

Thanks,
Bob

Return to “Common Problems”