Insert GUID in XML-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!

ckovamees
Posts: 18
Joined: Fri Aug 05, 2011 3:16 pm

Insert GUID in XML-file?

Hi all,

I want to generate and insert a new GUID in an XML-file on new installs. Is there any easy way to do that?

I'm using the XML Editor and a Value for an attribute should be the newly generated GUID.

:?:

Thx,


/Carl
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Insert GUID in XML-file?

Hi Carl,

To insert your GUID into an XML file you can use a public property, as you probably know. However, there is no predefined support for Advanced Installer
to generate a GUID and place it in that property. For this you will need to create a custom action, i.e. Win32 DLL or VBScript, to generate the GUID and place in the desired property.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ckovamees
Posts: 18
Joined: Fri Aug 05, 2011 3:16 pm

Re: Insert GUID in XML-file?

Thanks.

Return to “Common Problems”