How To Hide The Value Of A Global Property In MSI Log File? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

How To Hide The Value Of A Global Property In MSI Log File?

I have an AI based merge module that has a password property (Global, i.e. named CXMY_PWD) whose value is passed down by the parent MSI.

I also have an inline script custom action in the Merge Module to populate that parameter, i.e.:

Session.Property("CXMY_PWD.4E72A4E1538744C6A2EC5B2DE0D2CEDE") = Session.Property("CXMY_PWD")

How do I hide this value in the MSI log file?
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How To Hide The Value Of A Global Property In MSI Log Fi

Hello,

You can try the following:
- create your own custom action that appends your property to the MsiHiddenProperties property
- add this custom action from the merge module and share it at the beginning of both "Wizard Dialogs Stage" and "Install Execution Stage" (Custom Actions page)

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: How To Hide The Value Of A Global Property In MSI Log Fi

mihai.petcu wrote: - add this custom action from the merge module and share it at the beginning of both "Wizard Dialogs Stage" and "Install Execution Stage" (Custom Actions page)
You can't really "share" a custom action can you? Did I miss a tip/trick? All you can do is copy it and maintain two copies, right?
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: How To Hide The Value Of A Global Property In MSI Log Fi

Hmm it's still showing up in my custom action call to my .NET installer class since we pass it in as a parameter to the .NET installer DLL as /logonpwd=[CXMY_PWD]
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How To Hide The Value Of A Global Property In MSI Log Fi

Hello,
You can't really "share" a custom action can you?
Actually you can. Just hold Shift key while drag&drop the custom action from one stage to the other. This operation is described in the custom actions page user guide reference (press F1 key while in Custom Actions page).

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How To Hide The Value Of A Global Property In MSI Log Fi

Can you please specify how you defined the property in the merge module? Was it from Install Parameters page or created by your own custom behavior?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: How To Hide The Value Of A Global Property In MSI Log Fi

Under "Module Details" => "Properties" window, e.g. CXMY_PWD whose value is originally "".

Then I have a custom action to set this from the global property, i.e. Session.Property("CXMY_PWD.4E72A4E1538744C6A2EC5B2DE0D2CEDE") = Session.Property("CXMY_PWD")

In my MsiHiddenProperties script I've done:

Session.Property("MsiHiddenProperties") = Session.Property("MsiHiddenProperties") & ";CXMY_PWD.4E72A4E1538744C6A2EC5B2DE0D2CEDE"
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How To Hide The Value Of A Global Property In MSI Log Fi

Hello,

To hide the property in the custom action call as well you can try to add CustomActionData property to MsiHiddenProperties property as well. If the installer class custom action is in the merge module, then you should append CustomActionData to MsiHiddenProperties in another custom action (scheduled at the beginning of the Stage) from the merge module.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: How To Hide The Value Of A Global Property In MSI Log Fi

Mihai,

That didn't work. This might help:

http://msdn.microsoft.com/en-us/library ... 85%29.aspx

but my problem is my CustomActionData string is over 255 characters so your Table Editor complains and won't let me save the row :cry: Maybe setting this type should be extended to the AI Custom Action UI?

I'm going to do something else more drastic to get around this.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.

Return to “Common Problems”