Value reverting to a default value - 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!

FergusMurray
Posts: 150
Joined: Thu Sep 30, 2010 10:44 am

Value reverting to a default value

I have a shortcut being installed to the start menu, the location of the url can change depending upon what is selected during install
URL of the shortcut has its propery as:
http://[IISSelectedWebroot]/DocumentArchive/DocumentEnquiry/

I have the property defined under "Install Parameters" and have a default set to "127.0.0.1"

Running a verbose log i can see this:
...
line 884: MSI (c) (B0!7C) [13:52:47:173]: PROPERTY CHANGE: Modifying IISSelectedWebroot property. Its current value is '127.0.0.1'. Its new value: '127.0.0.1:85'
...
line 15455: MSI (s) (60:0C) [13:56:46:388]: Executing op: IniWriteRemoveValue(Section=InternetShortcut,Key=URL,Value=http://127.0.0.1/DocumentArchive/DocumentEnquiry,Mode=0)
...
line 15822: Property(S): IISSelectedWebroot = 127.0.0.1


The shortcut should have the http://127.0.0.1:85/DocumentArchive/DocumentEnquiry, but instead has the defaulted value of http://127.0.0.1/DocumentArchive/DocumentEnquiry

Is it something i have done wrong?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Value reverting to a default value

Hi,

Try using a public property, for example IIS_SELECTED_WEB_ROOT. Private properties lose their modified values when the actual install process starts.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”