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
- :
- I have a problem changing User Defined Property in InstallScript.
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
‎May 27, 2010
03:26 AM
I have a problem changing User Defined Property in InstallScript.
I tried to change a user defined property in a InstallScript, as below operation, but it cannot be changed after processing its InstallScript.
1) Add new property by Property Manager.
Name: ETYPE Value: NULL
2) Write a simple InstallScript , in which I use MsiSetProperty function.
#include "ifx.h"
export prototype MyFunction(HWND);
function MyFunction(hMSI)
begin
MsiSetProperty(ISMSI_HANDLE, "ETYPE", "HELLO");
end;
3) Insert this custom action(InstallScript) by Custom Action Wizard.
Insert it in in Install UI Sequence.
As I check its property in MSI debugger, it is not changed (NULL).
Could someone point out my mistake, please ?
Is it not possible by InstallScript ?
or Is the function(MsiSetProperty) not correct ?
or Is Sequence inserted not wrong ?
Please help me.
1) Add new property by Property Manager.
Name: ETYPE Value: NULL
2) Write a simple InstallScript , in which I use MsiSetProperty function.
#include "ifx.h"
export prototype MyFunction(HWND);
function MyFunction(hMSI)
begin
MsiSetProperty(ISMSI_HANDLE, "ETYPE", "HELLO");
end;
3) Insert this custom action(InstallScript) by Custom Action Wizard.
Insert it in
As I check its property in MSI debugger, it is not changed (NULL).
Could someone point out my mistake, please ?
Is it not possible by InstallScript ?
or Is the function(MsiSetProperty) not correct ?
or Is Sequence inserted not wrong ?
Please help me.
(2) Replies
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 27, 2010
09:48 AM
you can use this way:
function MyFunction(hMSI)
begin
MsiSetProperty(hMSI, "ETYPE", "HELLO");
end;
function MyFunction(hMSI)
begin
MsiSetProperty(hMSI, "ETYPE", "HELLO");
end;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 01, 2010
12:20 AM
I solved my problem by the Kevin's advice.
Regards,
chocodachs
Regards,
chocodachs