开发者

Deploy ClickOnce online installation filetree as a single .exe file for installing offline

开发者 https://www.devze.com 2023-02-04 13:26 出处:网络
Any ideas how to pack ClickOnc开发者_开发技巧e online installation filetree in a single .exe file for installing offline? I know it\'s not designed for this purpose, but using Windows Installer is NOT

Any ideas how to pack ClickOnc开发者_开发技巧e online installation filetree in a single .exe file for installing offline? I know it's not designed for this purpose, but using Windows Installer is NOT an option for me, because I need just to RUN the app without any installation process (exactly as ClickOnce online installation works). I've tried IExpress tool for making self-extracting .exe, but unfortunately it doesn't support filetree. Can I use .cab packaging for this purpose?


If you want to run the app without any installation process, you can copy the contents of the \bin\release folder into a folder on the target machine and set up a shortcut to the exe file.

Note that you will have to make sure the target machine has the right prerequisites installed.

Otherwise you can publish the ClickOnce app to a folder on disk, write the folder to a CD, and send it to the user. They can pop in the CD and run setup.exe to install it. You'll need to set the prerequisites to be installed from the same location as the deployment instead of from the vendor's website. You'll probably also want to leave the installation URL blank, and in the options for the deployment, select the option that allows you to NOT specify a deployment URL. What will happen is the ClickOnce app will always look to the CD drive for updates (it uses whatever the path is when the user installs it).

You can also distribute it by CD and still put an update URL in the Updates dialog if the user ever has access to an internet connection.

0

精彩评论

暂无评论...
验证码 换一张
取 消