![](/img/trans.png)
[英]Inno Setup's installer doesn't require admin rights after uploading and downloading cycle
[英]Provide Startup path when making installer with inno setup
我正在使用Inno setup使我的 exe 可安裝。 我使用它的向導來創建運行良好的設置,但我想讓用戶選擇在 Windows 啟動時安裝它。 我該怎么做? 然后我按照評論的建議得到了這個鏈接,但我無法理解! 我只想要簡單的用戶界面,無需用戶手動工作。
要在用戶登錄時啟動應用程序,請使用[Registry]
部分中的條目向Software\\Microsoft\\Windows\\CurrentVersion\\Run
注冊表項添加一個條目。
另請參閱@jachgate對Inno Setup, APP start When windows start的回答。
不要使用[Icons]
,這是一個遺留解決方案。
要允許用戶選擇是否配置自動啟動,請將[Registry] entry
與任務關聯,例如:
[Tasks]
Name: startup; Description: "Start application when user logs in"
[Registry]
Root: HKLM; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; \
ValueName: "MyProgram"; ValueData: "{app}\MyProg.exe"; Tasks: startup
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.