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
- :
- How can I get the value for the property which was defined in the property window?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Jun 07, 2011
10:05 PM
How can I get the value for the property which was defined in the property window?
How can I get the value for the property which was defined in the property window?
Becuase I will need this value in the install script to create short cut and this value is localizable.
I try to use MsiGetProperty, but it seems it is not the correct method.
Any help is appriacted.
Becuase I will need this value in the install script to create short cut and this value is localizable.
I try to use MsiGetProperty, but it seems it is not the correct method.
Any help is appriacted.
(9) Replies
Jun 08, 2011
08:01 PM
lambertpandian wrote:
From IS IDE you can use “System Configuration” -> “Shortcuts” to create a shortcut. It means the Shortcut created using windows installer standard action. No need of script.
hi, do you know if I can create a multi-language shortcut there for English, Chinese, Janpanese.
By the way, by the below method I will pass the property name which is defined in the property manager but why I can't get the property value by it:
function STRING GetPropertyValue(szPropertyName,hMSI)
STRING szPropertyValue;
NUMBER buffer;
NUMBER retVal;
begin
// set initial buffer size
buffer = MAX_STRING;
retVal = MsiGetProperty(hMSI, szPropertyName, szPropertyValue, buffer);
if (ERROR_SUCCESS != retVal) then
MessageBox("Error Finding the property.", SEVERE);
endif;
MessageBox(szPropertyValue, SEVERE);
return szPropertyValue;
end;
Jun 09, 2011
03:30 AM
Yes, you can. For multilingual purpose InstallShield maintains the strings separately. You can find that in String Editor.
From the above script I don’t see where you call the function. I suggest below points;
1. Makes the property as public property.
2. If you use Deferred you need property custom action to store the property value.
From the above script I don’t see where you call the function. I suggest below points;
1. Makes the property as public property.
2. If you use Deferred you need property custom action to store the property value.
Jun 09, 2011
03:46 AM
That s easy way to create a shortcut..
Is any perticular reason to create a shotcut using script ???
Is any perticular reason to create a shotcut using script ???
Jun 09, 2011
06:01 AM
Using Shortcut view is the easiest and the best option.
You can edit the string table based on the languages included
You can edit the string table based on the languages included