-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single system/user installer for windows #238042
base: main
Are you sure you want to change the base?
Conversation
e3ec6d8
to
2ebec34
Compare
Root: HKA; Subkey: "Software\Classes\{#RegValueName}.dtd\shell\open"; ValueType: string; ValueName: "Icon"; ValueData: """{app}\{#ExeBasename}.exe"""; Tasks: associatewithfiles | ||
Root: HKA; Subkey: "Software\Classes\{#RegValueName}.dtd\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#ExeBasename}.exe"" ""%1"""; Tasks: associatewithfiles | ||
|
||
Root: HKA; Subkey: "Software\Classes\.editorconfig\OpenWithProgids"; ValueType: none; ValueName: "{# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs more work: The "Add to Path" option not perfect yet.
2ebec34
to
fea7957
Compare
I found this: https://stackoverflow.com/a/16005826/ . I'll try it. |
Core play help centre |
fea7957
to
ff5ce8a
Compare
This comment was marked as resolved.
This comment was marked as resolved.
The IMO, for this restriction, we needs our own system/user detection and choose logic. Or we needs to do Even if this restrict in Inno Setup is not exist, how can the installer determind which of system/user should be update if both is installed? Update: this can be solved? by command line option |
@joaomoreno Hi, what's your opinion in this? Here are four choices in my view.
I recommand the first choice. However, the decision is yours and I am not a Microsoft employee. LOL. |
Related to #122698
Inno Setup already provides
PrivilegesRequiredOverridesAllowed=dialog
and other useful functions to support combine system(admin)/user(non-admin) installer. However, the biggest problem is, VSCode currently uses differentAppId
for system and user installer.vscode/build/gulpfile.vscode.win32.js
Lines 71 to 74 in 91fbddd
vscode/build/win32/code.iss
Lines 7 to 10 in 91fbddd
So, after this change (combine system/user installer) is made, one of these two types of existing users needs to do uninstall first?
But, I still think that this change is worth it. Providing a single installer is the most popular way, like Python, provides a single installer for both system/user install modes, this can reduce user confusion, and, save some CDN costs for Microsoft. LOL.
And, there's another option, keeping the user-only installer, but turn system installer into universal one.
Tips about build installer: