Partial Install only

Got a problem you cannot solve? Try here.
Post Reply
glenharvy
Posts: 167
Joined: Fri Sep 14, 2007 3:53 am

Partial Install only

Post by glenharvy »

Hi,
I want to design my project so that the user selects by way of a radio button what role my program is to perform after installation. If they select a 'Client' role then I don't want IA to install anything that I have defined for the TargetDirectory 'ALLAPPDATA'. If they select a 'Standalone' role then IA goes ahead and installs everything defined for the 'ALLAPPDATA' directory. A third role, 'Server' will also install everything for the 'ALLAPPDATA' however the actual directory this points to may be defined by the end user as another path altogether if they so desire.
No matter which role they chose, everything else in the IA project remains the same.
I can't see at which point in the script where I can insert an IF/ELSE scenario with regards to actioning the 'ALLAPPDATA' installation segment. I'm assuming that changing the path of the 'ALLAPPDATA' variable will not be a problem.
Does anyone know if it's as simple as what I describe or do I need to take a much more complicated route?
Thanks,
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Partial Install only

Post by FrancescoT »

Dear User,

I suppose you are using a dialog to collect these information.

You can place your customized code just after the dialog in order to change conditionally your target path.
So you could have something like this, just after your selection diaolg or after all your required selections has been collected:

Code: Select all

if Variable SELECTION_ONE Equals 
Set Variable TARGETDIR to MYPATH_ONE
end
if Variable SELECTION_TWO Equals 
Set Variable TARGETDIR to MYPATH_TWO
end
Hoping that I haven't missed your question.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply