FeatureSetTarget Example

InstallShield 2013 ยป InstallScript Language Reference

/*--------------------------------------------------------------*\

*

* InstallShield Example Script

*

* Demonstrates the FeatureSetTarget function. After adding this

* to a script for an InstallScript project, you will see the

* modified value of INSTALLDIR in the SdAskDestPath

* dialog. In a project that had any components with OTHERLOC as

* their destination, that would also be changed.

*

\*--------------------------------------------------------------*/

 

function OnBegin( )

 

begin

// change values of directory properties INSTALLDIR and OTHERLOC for a first-time

// installation

if (!MAINTENANCE) then

    FeatureSetTarget(MEDIA, "<INSTALLDIR>", "C:\\RightHere");

    FeatureSetTarget(MEDIA, "<OTHERLOC>", "C:\\SomewhereElse");

endif;

 

end;