Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

InstallChangeFolder


1 reply to this topic

wellwisher

wellwisher
  • Full Members
  • 32 posts

Posted 16 January 2008 - 12:56


InstallChange Folder is a standard dialog in IS. It is generally used for selecting a location where an application is to be installed. This dialog gets invoked when the user clicks the button for changing the location of installation.
The similar kind of functioanlly is to be done in my project. Here I'm tring to set a path either by browing to something already existing in the file system. Oe else if the user does not want to select the existing path he can choose to create a new directory and set the path to this newly created directory. Note that the InstallChangeFolder has the funcitonally to create a new directory. I know this as it has the icon to create the new directory. Thisu when the user creates a new directory the same should be selected as the value of the edit box meant to hold the value after the InstallChangeFolder has been accepted with the press of Ok button. Please let me know how to implement the same.

rajib

rajib
  • Full Members
  • 16 posts

Posted 17 January 2008 - 13:31


Hi

The value of the new location is by default attached with INSTALLDIR property. But at Basic MSI, it is not enough to use INSTALLDIR property to retrieve the value. u need to use the,

STRING sPropName;
STRING sPropValue;
NUMBER nvBufferSize;

sPropName="INSTALLDIR";
sPropValue="";
nvBufferSize=MAX_PATH+1;
MsiGetProperty(ISMSI_HANDLE,sPropName,sPropValue,nvBufferSize);

sPropValue -this string variable will return the installation path.

Please take care of the sequence, when u r trying to retrieve the value. If it is in some custom action, be warned that, if the execution option is deferred execution then u may face some problems. You may check support.installshield.com/kb for more information regarding using properties at different sequence.

take care,
-Rajib