Sometimes you will want your clients to install your applications from a cd. Or they will not always have access to the internet. You can still use a ClickOnce application for this, and take advantage of the ClickOnce application updating features when they are connected to the internet.
1) Create your application in Visual Studio 2005 and enable ClickOnce security settings (My Project → Security).
2) On the Publish tab of My Project, enter a folder on your computer as the Publishing location.
3) Still on the Publish tab, click “Updates”. A new dialog box will open and under “Update Location”, enter the web folder that the application will eventually
be published to (http://mycompany.com/clickonce/thisApp). Click “OK”.
4) On the Publish tab, click “Options”. Check “For CD installations, automatically start…” Click “OK”.
5) Publish your application.
6) Burn the files in the folder set in step 2.
7) Using that burnt cd, install your application.
8) Back in Visual Studio, change the Publishing location that we set in step 2, to the Update location that we set in step 3.
9) Make a change to your application and publish it.
10) Go to your start menu, and launch your application. You will see it check for updates, download the update and your changes will be reflected. Note that it
may take a couple minutes before the application recognizes that updates are available on the web server.
Of course you can set the when the application checks for updates or use the My.Application.Deployment class to handle your own updates.
Source (http://geekswithblogs.net/thibbard/archive/2006/02/22/70375.aspx)
1. Podpisanie assemblies(.exe alebo .dll)
konzolovy nastroj v Microsoft SDKs
umiestnenie “c:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\signtool.exe”
signtool.exe sign /f certificate.pfx /p certificatePassword MyApp.exe
http://msdn.microsoft.com/en-us/library/windows/desktop/aa387764(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/aa388170(v=vs.85).aspx
graficky nastroj od spolocnosti od ktorej mame zakupeny certifikat na code signing
https://www.globalsign.com/code-signing-tool/
2. ak sa pouziva ClickOnce instalator\updatovaci system
na upravy vypublikovanej aplikacie sa pouziva nastroj mage(Manifest Generation and Editing Tool) z Microsoft SDKs
umiestnenie: “c:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\mage.exe”
2.1 Je nutne pre novo podpisane asemblies znovu pregenerovat hash co znamena updatnut\opetovne podpisat application manifest
mage.exe -update MyApp.exe.manifest -CertFile certificate.pfx -pwd certificatePassword
2.2 nasledne je nutny update\znovupodpisanie deployment manifestu
mage.exe -update CAManStudent.application -appm "Application Files\CAManStudent_1_0_4_6\CAManStudent.exe.manifest -CertFile certificate.pfx -pwd certificatePassword
zdroj: http://blogs.msdn.com/b/vsto/archive/2009/04/29/signing-and-re-signing-manifests-in-clickonce.aspx
Autor: Stanislav Kuchar
Skoncilo neuspesne - ak sa to podari niekomu rozbehat moze potom spisat navod sem
1. Download “Bootstrapper Manifest Generator” http://www.gotdotnet.com/workspaces/workspace.aspx?id=ddb4f08c-7d7c-4f44-a009-ea19fc812545
2. Install “Bootstrapper Manifest Generator”.
3. Open BMG (Bootstrapper Manifest Generator)
4. Select File→New
5. Select “Package Manifest” and click on OK
6. Type project name and click on “Add Installer File” icon top left
7. Browse for file, you wish to add into prerequisite, as I added exe as prerequisite you can choose as per your requirement.
8. Click on Ok
9. Type display name and click on “Build” icon top left.
10. Your prerequisite is been created,(copy it do directory program filed\Microsofr SDKs\v7.0A\Bootstrapper\Packages)
source (http://www.codeproject.com/Articles/15863/Add-your-own-custom-prerequisite-to-quot-ClickOnce)
http://geekswithblogs.net/MarkRosenberg/archive/2007/11/21/117026.aspx
vlastny prerequisite som vytvoril zakrkol ako perequisete pre moju aplikaciu zbuildol moju aplikaciu, ale pri instalacii to zlyhalo ze nesedeli kontrolne sucty …