CustomAction DLL In VMWare - 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!

skankwilsonite
Posts: 2
Joined: Fri Dec 01, 2006 9:27 pm

CustomAction DLL In VMWare

I apologize if this has already been covered. I'm trying to use a Custom Action DLL in the Commit sequence. I created a DLL exports a function:

UINT __stdcall TestCustAction(MSIHANDLE hInstall) {
MessageBox(NULL,"Ha, ha, ha, you can't see me","Test",MB_OK);
return ERROR_SUCCESS;
}

When I run my EXE install that AI creates in VMWare, the install gets rolled back. I couldn't figure out why. Therefore, I tried the "Run & Log" option on my development machine. This worked for some reason. Why is my install getting rolled back, and why does the install run properly on my actual machine? The only thing that I found in AI was an option to "Prevent running on virtual machines" in "Launch Conditions", but this was unchecked. Any suggestions would be greatly appreciated. If this post is lacking information, please let me know and I will provide whatever is needed. Thanks in advance.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please send the AIP file (if not contain any confidential informations) or a test project that exhibits the same behavior to support at advancedinstaller dot com in order to investigate the problem.

Also please send a log file obtained running the package with this command line:
msiexec /i package.msi /l*v package.log

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
skankwilsonite
Posts: 2
Joined: Fri Dec 01, 2006 9:27 pm

It seems that I have found the "problem" with this. I had mistakenly linked the custom action DLL with the /MD option (default VS 2005), so on my development machine, it was fine because I had the C Runtime DLL, but on the VMWare machine it did not. Therefore the DLL wouldn't load in VMWare. That was fun. Thanks for the help though, Gigi.
gigi wrote:Hi,

Please send the AIP file (if not contain any confidential informations) or a test project that exhibits the same behavior to support at advancedinstaller dot com in order to investigate the problem.

Also please send a log file obtained running the package with this command line:
msiexec /i package.msi /l*v package.log

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”