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!

ihsiu1
Posts: 17
Joined: Tue Feb 21, 2006 4:36 pm

How do I get the installer handle? automatic delete files?

Hi,

How do I get the installer handle for my custom action dll so I can use
MsiGetProperty( MSIHANDLE installerHandle, ...) ?

I know there is a feature to remove empty folder but how about delete files such as the ones used for the dialogs & global properties? Do I have to delete them by my custom action after installation or is there a way by the installer?

Thanks & God bless,

ihsiu
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

The MSIHANDLE is passed as an argument to the DLL Custom Action function. Therefore, the function signature will look like this:

Code: Select all

UINT __stdcall MyDLLFunction(MSIHANDLE hInstall);
You also need to export the function using a module-definition (.DEF) file. This will be added as an Attached Custom Action. For more information about DLL Custom Actions, please see:
http://msdn.microsoft.com/library/defau ... raries.asp
I know there is a feature to remove empty folder but how about delete files such as the ones used for the dialogs & global properties? Do I have to delete them by my custom action after installation or is there a way by the installer?
Please give me more details about this, because I do not quite understand what you mean.

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
ihsiu1
Posts: 17
Joined: Tue Feb 21, 2006 4:36 pm

file deletion feature? feature comparison?

Hi Denis,

Thanks! One down :-)

The 2nd one, say, a readme file is needed only when the installation is done and then can be deleted from the containing folder so the folder, in turn, can be deleted. Can the file deletion part be specified in the Installer? Or I have to do it by custom action?

Another question - is there a feature comparison between the Advanced Installer and InstallShield, etc.? What's your recommendation?

Thanks very much.

God bless,
ihsiu
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,
The 2nd one, say, a readme file is needed only when the installation is done and then can be deleted from the containing folder so the folder, in turn, can be deleted. Can the file deletion part be specified in the Installer? Or I have to do it by custom action?
This can be done using a Custom Action. In a future release Advanced Installer will support a predefined Custom Action that performs this task.
Another question - is there a feature comparison between the Advanced Installer and InstallShield, etc.? What's your recommendation?
I am afraid we do not have such a comparison list. Each product probably implement features that the other doesn't have. But what matters is who implements the features you need...

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”