I want to use a variable to let the user select one of two versions of the software they may already have installed before they install the addon.
If they have App installed the install path will be %ProgramFile%\App
If they have App Lite installed, the path will be %ProgramFiles%\App Lite
I set the variable using the radio12 window at the start. The choice is set in the variable %SelectVersion%
I then added a if statement to set the install [path after they have selected their choice as follows:
if (%SelectVersion% = App Lite)
{
%AppDir% = %ProgramFiles%\App Lite
}
else
{
%AppDir% = %AppDir%*
}
end if
*as defined in the main setup window
Why won't this work? I keep getting prompted for and extra "\" and all kinds of other errors.
If they have App installed the install path will be %ProgramFile%\App
If they have App Lite installed, the path will be %ProgramFiles%\App Lite
I set the variable using the radio12 window at the start. The choice is set in the variable %SelectVersion%
I then added a if statement to set the install [path after they have selected their choice as follows:
if (%SelectVersion% = App Lite)
{
%AppDir% = %ProgramFiles%\App Lite
}
else
{
%AppDir% = %AppDir%*
}
end if
*as defined in the main setup window
Why won't this work? I keep getting prompted for and extra "\" and all kinds of other errors.
Comment