[GH-ISSUE #143] [FEATURE] Silent install flag for choosing "Common commands and commands for network environments" #141

Closed
opened 2026-02-25 21:32:43 +03:00 by kerem · 2 comments
Owner

Originally created by @PeetMcK on GitHub (Apr 23, 2021).
Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/143

Is your feature request related to a problem? Please describe.
I'm trying to deploy Path Copy Copy Silently "installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-" works well, but I'd very much like to include the default settings for "Common commands and commands for network environments" that are available in the UI in the installer.

Describe the solution you'd like
Just a flag that allows for "/SETTIGNS-COMMANDNET" or whatever works for your Inno installer.

Describe alternatives you've considered
I'm currently working on injecting the following before installing:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\clechasseur\PathCopyCopy]
"SubmenuDisplayOrder"="{3a42b5c6-72d6-4a8a-ba44-014fa64aa11a},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{331a3b60-af49-44f4-b30d-56adff6d25e8},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{349939d7-780f-43fd-a98e-83d9add44e22},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{ea24bcc3-35f5-46b9-a2a5-a12a0aed2d28},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{e2c942ac-917c-4aee-a867-8f6ab960ba76},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{8f2adccc-9693-407d-9300-fccb9a12b982},{7da6a4a2-ae54-40e0-9910-ebd9ef3f017e}"
"UIDisplayOrder"="{3A42B5C6-72D6-4A8A-BA44-014FA64AA11A},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{331A3B60-AF49-44F4-B30D-56ADFF6D25E8},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{349939D7-780F-43FD-A98E-83D9ADD44E22},{C8757DCA-1BA8-48D0-8145-B93BBB9237AF},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{93B362D1-2B13-467A-B618-6784F24F3BA1},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{0929538B-5F52-4480-9902-2BBEC9C84905},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{891F9E3E-0B70-49FD-A86C-53B21C6193C7},{EA24BCC3-35F5-46B9-A2A5-A12A0AED2D28},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{73188FB3-8E14-409C-95EF-BA608FDC1274},{E2C942AC-917C-4AEE-A867-8F6AB960BA76},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{8F2ADCCC-9693-407D-9300-FCCB9A12B982},{7DA6A4A2-AE54-40E0-9910-EBD9EF3F017E},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{5B5DA5CB-3284-45A9-A1E5-4D6B03107924},{CD50DCE3-9A5C-4ADF-B552-1741361567D6},{BD574871-5DF9-4B64-83D1-2AF9C0C17F66},{31022A3D-6FEE-4B36-843E-BBB4556AB35B}" 
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\clechasseur\PathCopyCopy]
"SubmenuDisplayOrder"="{3a42b5c6-72d6-4a8a-ba44-014fa64aa11a},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{331a3b60-af49-44f4-b30d-56adff6d25e8},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{349939d7-780f-43fd-a98e-83d9add44e22},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{ea24bcc3-35f5-46b9-a2a5-a12a0aed2d28},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{e2c942ac-917c-4aee-a867-8f6ab960ba76},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{8f2adccc-9693-407d-9300-fccb9a12b982},{7da6a4a2-ae54-40e0-9910-ebd9ef3f017e}"
"UIDisplayOrder"="{3A42B5C6-72D6-4A8A-BA44-014FA64AA11A},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{331A3B60-AF49-44F4-B30D-56ADFF6D25E8},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{349939D7-780F-43FD-A98E-83D9ADD44E22},{C8757DCA-1BA8-48D0-8145-B93BBB9237AF},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{93B362D1-2B13-467A-B618-6784F24F3BA1},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{0929538B-5F52-4480-9902-2BBEC9C84905},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{891F9E3E-0B70-49FD-A86C-53B21C6193C7},{EA24BCC3-35F5-46B9-A2A5-A12A0AED2D28},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{73188FB3-8E14-409C-95EF-BA608FDC1274},{E2C942AC-917C-4AEE-A867-8F6AB960BA76},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{8F2ADCCC-9693-407D-9300-FCCB9A12B982},{7DA6A4A2-AE54-40E0-9910-EBD9EF3F017E},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{5B5DA5CB-3284-45A9-A1E5-4D6B03107924},{CD50DCE3-9A5C-4ADF-B552-1741361567D6},{BD574871-5DF9-4B64-83D1-2AF9C0C17F66},{31022A3D-6FEE-4B36-843E-BBB4556AB35B}"

Additional context
While, not the end of the world, to do the reg-edit before install, it would be great to not have to. Perhaps there's already a way to do this that hasn't made it's way into the yet to be written "Wiki-Installing-Advanced"?

Originally created by @PeetMcK on GitHub (Apr 23, 2021). Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/143 **Is your feature request related to a problem? Please describe.** I'm trying to deploy Path Copy Copy Silently "installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-" works well, but I'd very much like to include the default settings for "Common commands and commands for network environments" that are available in the UI in the installer. **Describe the solution you'd like** Just a flag that allows for "/SETTIGNS-COMMANDNET" or whatever works for your Inno installer. **Describe alternatives you've considered** I'm currently working on injecting the following before installing: ``` Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\clechasseur\PathCopyCopy] "SubmenuDisplayOrder"="{3a42b5c6-72d6-4a8a-ba44-014fa64aa11a},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{331a3b60-af49-44f4-b30d-56adff6d25e8},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{349939d7-780f-43fd-a98e-83d9add44e22},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{ea24bcc3-35f5-46b9-a2a5-a12a0aed2d28},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{e2c942ac-917c-4aee-a867-8f6ab960ba76},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{8f2adccc-9693-407d-9300-fccb9a12b982},{7da6a4a2-ae54-40e0-9910-ebd9ef3f017e}" "UIDisplayOrder"="{3A42B5C6-72D6-4A8A-BA44-014FA64AA11A},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{331A3B60-AF49-44F4-B30D-56ADFF6D25E8},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{349939D7-780F-43FD-A98E-83D9ADD44E22},{C8757DCA-1BA8-48D0-8145-B93BBB9237AF},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{93B362D1-2B13-467A-B618-6784F24F3BA1},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{0929538B-5F52-4480-9902-2BBEC9C84905},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{891F9E3E-0B70-49FD-A86C-53B21C6193C7},{EA24BCC3-35F5-46B9-A2A5-A12A0AED2D28},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{73188FB3-8E14-409C-95EF-BA608FDC1274},{E2C942AC-917C-4AEE-A867-8F6AB960BA76},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{8F2ADCCC-9693-407D-9300-FCCB9A12B982},{7DA6A4A2-AE54-40E0-9910-EBD9EF3F017E},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{5B5DA5CB-3284-45A9-A1E5-4D6B03107924},{CD50DCE3-9A5C-4ADF-B552-1741361567D6},{BD574871-5DF9-4B64-83D1-2AF9C0C17F66},{31022A3D-6FEE-4B36-843E-BBB4556AB35B}" [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\clechasseur\PathCopyCopy] "SubmenuDisplayOrder"="{3a42b5c6-72d6-4a8a-ba44-014fa64aa11a},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{331a3b60-af49-44f4-b30d-56adff6d25e8},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{349939d7-780f-43fd-a98e-83d9add44e22},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{ea24bcc3-35f5-46b9-a2a5-a12a0aed2d28},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{e2c942ac-917c-4aee-a867-8f6ab960ba76},{afa4d1e1-ba73-4330-a6ab-e574ff39ecc3},{8f2adccc-9693-407d-9300-fccb9a12b982},{7da6a4a2-ae54-40e0-9910-ebd9ef3f017e}" "UIDisplayOrder"="{3A42B5C6-72D6-4A8A-BA44-014FA64AA11A},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{331A3B60-AF49-44F4-B30D-56ADFF6D25E8},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{349939D7-780F-43FD-A98E-83D9ADD44E22},{C8757DCA-1BA8-48D0-8145-B93BBB9237AF},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{93B362D1-2B13-467A-B618-6784F24F3BA1},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{0929538B-5F52-4480-9902-2BBEC9C84905},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{891F9E3E-0B70-49FD-A86C-53B21C6193C7},{EA24BCC3-35F5-46B9-A2A5-A12A0AED2D28},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{73188FB3-8E14-409C-95EF-BA608FDC1274},{E2C942AC-917C-4AEE-A867-8F6AB960BA76},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{8F2ADCCC-9693-407D-9300-FCCB9A12B982},{7DA6A4A2-AE54-40E0-9910-EBD9EF3F017E},{AFA4D1E1-BA73-4330-A6AB-E574FF39ECC3},{5B5DA5CB-3284-45A9-A1E5-4D6B03107924},{CD50DCE3-9A5C-4ADF-B552-1741361567D6},{BD574871-5DF9-4B64-83D1-2AF9C0C17F66},{31022A3D-6FEE-4B36-843E-BBB4556AB35B}" ``` **Additional context** While, not the end of the world, to do the reg-edit before install, it would be great to not have to. Perhaps there's already a way to do this that hasn't made it's way into the yet to be written "Wiki-Installing-Advanced"?
kerem 2026-02-25 21:32:43 +03:00
Author
Owner

@clechasseur commented on GitHub (Apr 23, 2021):

This already exists, pass /INITIALCOMMANDSCHOICE=1 to the installer when calling it silently. (0 is common commands, 1 adds network commands and 2 is all commands)

<!-- gh-comment-id:825960024 --> @clechasseur commented on GitHub (Apr 23, 2021): This already exists, pass `/INITIALCOMMANDSCHOICE=1` to the installer when calling it silently. (0 is common commands, 1 adds network commands and 2 is all commands)
Author
Owner

@PeetMcK commented on GitHub (Apr 23, 2021):

Hand to god, I did my best to find the flag! Sorry to bug you on this one. Now I know to look at the [Setup.iss](https://github.com/clechasseur/pathcopycopy/blob/default/Installer/Setup.iss) file to check for any changes on that one. I truly appreciate the response.

Though I'm glad to have worked out an install script to pre-stage a slightly different set of settings for the app. I'm pumped to see how to do this. Thanks for all your work.

<!-- gh-comment-id:825968894 --> @PeetMcK commented on GitHub (Apr 23, 2021): Hand to god, I did my best to find the flag! Sorry to bug you on this one. Now I know to look at the `[Setup.iss](https://github.com/clechasseur/pathcopycopy/blob/default/Installer/Setup.iss)` file to check for any changes on that one. I truly appreciate the response. Though I'm glad to have worked out an install script to pre-stage a slightly different set of settings for the app. I'm pumped to see how to do this. Thanks for all your work.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pathcopycopy#141
No description provided.