[Incident]: Some users report they are unable to access the case portal. Please see this community notice for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
chocodachs
Level 3

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.
Labels (1)
0 Kudos
2 Replies
Not applicable

you can use this way:

function MyFunction(hMSI)
begin
MsiSetProperty(hMSI, "ETYPE", "HELLO");
end;
0 Kudos
chocodachs
Level 3

I solved my problem by the Kevin's advice.

Regards,
chocodachs
0 Kudos