Using AI to wrap a ClickOnce application? - 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!

rpg
Posts: 2
Joined: Wed Nov 21, 2007 5:44 pm

Using AI to wrap a ClickOnce application?

Hello,

I would like to use Advanced Installer to essentially put a nice front end on a ClickOnce package created using Visual Studio 2005. The idea is that I like the auto updates and pre-requisites handling built into the ClickOnce framework, but there is only rudimentary support for the UI for generating installation dialogs such as EULA etc.

Is there a way to use Advanced Installer to create an MSI out of a ClickOnce package such that all that AI does is present the intial user dialog, then hand off the rest of the installation to the setup.exe file included in the ClickOnce folder? In other words, I don't want AI to actually install the ClickOnce files as if they are the application--just prompt the user with the AI dialog screens, unwrap the ClickOnce files embedded in the AI MSI file, then run the ClickOnce setup.exe file.

Thanks!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Here is how you can do this:
- you add the ClickOnce setup in the "Files and Folders" page as temporary files
- in the "Custom Actions" page you create an "EXE with working Dir" custom action under "InstallExecuteSequence" -> "Install"
- you make these modifications for the custom action:

Code: Select all

Full Path: "[#setup.exe]" (where "setup.exe" is the ClickOnce setup file)
Execution Properties: Asynchronous execution, do not wait for return
Execution Condition: NOT Installed
- in the "Product Details" page you select the "Do not register with Windows Installer" option (this will make the MSI to not be shown in Control Panel)

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rpg
Posts: 2
Joined: Wed Nov 21, 2007 5:44 pm

Thanks for the quick reply! I'll try out your solution as soon as I get a chance.

--rpg

Return to “Common Problems”