long
Posts: 5
Joined: Tue Dec 05, 2006 4:56 pm

check running apps during install

hi All,
can I determine if any of ms office application is running during installation, and then prompt user to close this application, and don't continue install while this application is active?

and one more question, why is the maximum length of inline script only 256 chars?

Thanks!
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

This feature is available only if you use the updater to install your application. If you want to auto close an application with you package (double click on the .msi file) then you need to create a DLL custom action (that requires to know some C++ code).
and one more question, why is the maximum length of inline script only 256 chars?
If your script requires more that 256 chars then write the code in a .vbs file and use a "New Attached Custom Action".

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
long
Posts: 5
Joined: Tue Dec 05, 2006 4:56 pm

Thanks, Gigi !!!

where can i read about "DLL custom action"? what functions must realize this dll?
long
Posts: 5
Joined: Tue Dec 05, 2006 4:56 pm

and,
can i manipulate the sequence of install based on result of custom action (vbs attached custom action)?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

By default Windows Installer promt the user to close an running application that is installed or uses a file installed with the package. In this case the "FileInUse" dialog appears.

However there is a similar discussion on the forum please see:
http://www.advancedinstaller.com/forums ... findwindow

Also here is an example on how to create a DLL custom action:
http://www.advancedinstaller.com/user-g ... n-dll.html

You need to customize this DLL to concord with your needs.

Hope this helps.

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

Return to “Common Problems”