Enable AutoStart for CD installations
When deploying a ClickOnce application by means of removable media such as CD-ROM or DVD-ROM, you can enable AutoStart
so that the ClickOnce application is automatically launched when the media is inserted.
AutoStart
can be enabled on the Publish page of the Project Designer.
To enable AutoStart
With a project selected in Solution Explorer, on the Project menu click Properties.
Click the Publish tab.
Note
In ClickOnce for .NET Core 3.1 and .NET 5 or later, you set deployment properties using the Publish tool instead of the Publish wizard and the Publish page of the Project Designer. For more information, see Deploy a .NET Windows application using ClickOnce and ClickOnce for .NET.
Click the Options button.
The Publish Options dialog box appears.
Click Deployment.
Select the For CD installations, automatically start Setup when CD is inserted check box.
An Autorun.inf file will be copied to the publish location when the application is published.
Related content
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for