This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Using system search property
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 04, 2008
02:41 AM
Using system search property
In my OnFirstUIBefore part of the installshieldscript i have the following entry to customize my startCopy dialog.
I wanted to add a condition that if a systemsearch property is found i would show it in the dialog as well. But i can't use the property in script ... i tried with MsiGetProperty but without success.
Can someone help me out and show me the exact syntax?
Dlg_SdStartCopy:
szTitle = "";
szMsg = "";
listStartCopy = ListCreate( STRINGLIST );
//The following is an example of how to add a string(svName) to a list(listStartCopy).
//eg. ListAddString(listStartCopy,svName,AFTER);
ListAddString(listStartCopy,"Name: " + svName,AFTER);
ListAddString(listStartCopy,"Company: " + svCompany,AFTER);
ListAddString(listStartCopy,"Install directory: " + INSTALLDIR,AFTER);
nResult = SdStartCopy( szTitle, szMsg, listStartCopy );
ListDestroy(listStartCopy);
if (nResult = BACK) then
goto Dlg_SQL;
endif;
I wanted to add a condition that if a systemsearch property is found i would show it in the dialog as well. But i can't use the property in script ... i tried with MsiGetProperty but without success.
Can someone help me out and show me the exact syntax?
Dlg_SdStartCopy:
szTitle = "";
szMsg = "";
listStartCopy = ListCreate( STRINGLIST );
//The following is an example of how to add a string(svName) to a list(listStartCopy).
//eg. ListAddString(listStartCopy,svName,AFTER);
ListAddString(listStartCopy,"Name: " + svName,AFTER);
ListAddString(listStartCopy,"Company: " + svCompany,AFTER);
ListAddString(listStartCopy,"Install directory: " + INSTALLDIR,AFTER);
nResult = SdStartCopy( szTitle, szMsg, listStartCopy );
ListDestroy(listStartCopy);
if (nResult = BACK) then
goto Dlg_SQL;
endif;
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 04, 2008
09:23 AM
Please see the InstallShield help topic "Getting and Setting Properties" for a code sample of calling MsiGetProperty. If that doesn't help, please post your MsiGetProperty call...
![](/skins/images/7A3C4A6C12A4A0FF95DE2D6B899D5F47/responsive_peak/images/icon_anonymous_message.png)