Skip to content
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

How to use --process-start-args when running setup.exe? #487

Open
davetimmins opened this issue Nov 10, 2015 · 6 comments
Open

How to use --process-start-args when running setup.exe? #487

davetimmins opened this issue Nov 10, 2015 · 6 comments

Comments

@davetimmins
Copy link

Hi,

I'm wanting to pass some cmd args to my app when initially installing the application so if I run the setup.exe can I do this? I found the process-start-args flag but I can't get it to pass anything through to my application.

I've tried getting the args in my app but it only shows --install.

@davetimmins
Copy link
Author

Looks like this will be addressed with #296 hopefully?

@GianLorenzetto
Copy link

Hi,

I was wondering if there is any movement on this issue (or #296)?

This feature would be really useful for automated "run or install" scenarios.

@anaisbetts
Copy link
Contributor

--process-start-args doesn't do anything related to handling initial arguments passed to Setup.exe, getting arguments from Setup.exe would not be very easy to do. What do people want to do with this?

@GianLorenzetto
Copy link

Hi Paul,

We have a launcher app that will either fire up the app or run the setup.exe if not already installed. The launcher passes some configuration to the app, so it would be nice to pass the same arguments to setup.exe, which in turn passes them along to the app (when auto-run, post-install).

Our work-around for the moment is to just run the setup.exe with the /s switch and then launch the installed app as usual.

I imagine it's not a very common use case, but I see a number of people have requested something similar and I was just curious if it was on the radar.

I manually made the modifications from #296 and it seemed to be working by calling Squirrel.exe with the --install and --prcess-start-args switches (I couldn't fully test as the Setup app wasn't building for some reason I haven't looked into yet).

Cheers

@davetimmins
Copy link
Author

I wanted to be able to pass some initial args to set config values when the application is installed, this is so it can be configured per environment rather than having to create a specific build per client.

@simader
Copy link

simader commented Jan 31, 2018

Is there any update on this? I have the same issue.
Why was the pull-request not approved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants