hello<\/p>\n
im trying to build a ps1 fiel that will install some stuff<\/p>\n
i read somewhere i can use this command<\/p>\n
Start-Process -FilePath ‘Some.exe’ -ArgumentList ‘/silent’, ‘/install’ -Wait<\/p>\n
i still have the windows so i think i have to use /S instead of silent or /Verysilent<\/p>\n
but my question is what is the use of ‘/install’ -Wait<\/p>\n
not sure<\/p>\n
Thanks<\/p>","upvoteCount":1,"answerCount":38,"datePublished":"2021-06-23T14:48:33.000Z","author":{"@type":"Person","name":"pete007","url":"https://community.spiceworks.com/u/pete007"},"suggestedAnswer":[{"@type":"Answer","text":"
thanks<\/p>\n
i will check this avenue<\/p>\n
Regards<\/p>","upvoteCount":0,"datePublished":"2021-06-29T17:53:32.000Z","url":"https://community.spiceworks.com/t/install-app-in-sequence-with-powershell/803642/18","author":{"@type":"Person","name":"pete007","url":"https://community.spiceworks.com/u/pete007"}},{"@type":"Answer","text":"
Hello Neally<\/p>\n
maybe you can help me out with one thing i need to adjust some stuff there instead of a path we want to use a env path<\/p>\n
i already set some stuff but when i lauch the app it not working anymore<\/p>\n
i miss someting here<\/p>\n
this is what i have so far<\/p>\n
$env:Path = \"c:\\Softs\"<\/p>\n
Start-Process -FilePath ‘$($Path)VSCodeSetup-x64-1.57.1.exe’ -ArgumentList ‘/VERYSILENT’, ‘/SP’ -Wait<\/p>\n
ps im still looking on google what will be the good syntax <\/p>\n
Cheers<\/p>","upvoteCount":0,"datePublished":"2021-07-07T13:05:52.000Z","url":"https://community.spiceworks.com/t/install-app-in-sequence-with-powershell/803642/19","author":{"@type":"Person","name":"pete007","url":"https://community.spiceworks.com/u/pete007"}},{"@type":"Answer","text":"
your issue is single and double quotes.<\/p>\n
Powershell treats them very differently.<\/p>\n
Single → literal string<\/p>\n
double → interpolate<\/p>\n
$env:Path = \"c:\\Softs\"\n\nStart-Process -FilePath \"$Path\\VSCodeSetup-x64-1.57.1.exe\" -ArgumentList '/VERYSILENT', '/SP' -Wait\n<\/code><\/pre>\nsince you want it to interpolate the $path variable, you have to use double quote around it.<\/p>","upvoteCount":0,"datePublished":"2021-07-07T13:26:29.000Z","url":"https://community.spiceworks.com/t/install-app-in-sequence-with-powershell/803642/20","author":{"@type":"Person","name":"Neally","url":"https://community.spiceworks.com/u/Neally"}},{"@type":"Answer","text":"
cool i see now<\/p>\n
it work ty<\/p>\n
i will need to push a bit more my script but i will do some research first<\/p>\n
<\/p>","upvoteCount":0,"datePublished":"2021-07-07T13:36:35.000Z","url":"https://community.spiceworks.com/t/install-app-in-sequence-with-powershell/803642/21","author":{"@type":"Person","name":"pete007","url":"https://community.spiceworks.com/u/pete007"}},{"@type":"Answer","text":"
hello Neally<\/p>\n
im trying to do this :<\/p>\n
$SetupFolder = “c:\\SetupFolder”
\n$env:Path = \"c:\\Softs\"
\nNew-Item -Path $SetupFolder -type directory -Force
\nCopy-Item “$Path” “$SetupFolder” -Recurse<\/p>\n
but my last command is not working and i get this error<\/p>\n
cannot pin pint what i did bad
<\/p>\n
Copy-Item : Cannot bind argument to parameter ‘Path’ because it is an empty string.
\nAt line:1 char:11<\/p>\n
\n- Copy-Item “$Path” “$SetupFolder” -Recurse<\/li>\n
- \n
<\/code><\/pre>\n<\/li>\n- CategoryInfo : InvalidData: (
[Copy-Item], ParameterBindingValidationException<\/li>\n - FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.Copy
\nItemCommand<\/li>\n<\/ul>\nThanks<\/p>\n
Pierre<\/p>","upvoteCount":0,"datePublished":"2021-07-09T12:43:59.000Z","url":"https://community.spiceworks.com/t/install-app-in-sequence-with-powershell/803642/22","author":{"@type":"Person","name":"pete007","url":"https://community.spiceworks.com/u/pete007"}},{"@type":"Answer","text":"
If you post code, please use the ‘Insert Code’ button. Please and thank you!<\/p>\n