Skip to content

Environmental Variables with SCCM

Featured Replies

Dears,

i'm Distributing a Software that should point to a file using the FULL path , relative path Won't work , so when I install the Software Manually using the CMD it is "setup.exe /s /f1"%cd%\setup.iss" and it works Great , but when I use the same sytnax with the SCCM the %cd% doesnt work.

There is anyway so that I can point to this file using the FULL path from the SCCM.

 

Hint:Solution of running from Distribution point is not applicable in my case as the Software Package Size is large

regards,

  • Author

Dear Peter,

Thanks for your quick response , This variable is new to me , I searched on this variable but i didnt get the Idea , would you please tell me how to use this variable in my case ?

And I use this variable when I'm creating the .iss file , or when I'm Distributing it through SCCM ?

Also add as last line "exit /b %errorlevel%". This will return the exit code of the setup to the client.

  • Author

Dears, Thank you all for your Quick response , But I Found a Very Simple way , when i create the Answer file I have to do the following:

CMD> <FullPath>\setup.exe -r -f1"<FullPath>\setup.iss

Now we'll have setup.exe and setup.iss in the same location

for the silent installation

CMD> <FullPath>\setup.exe -s ,, and no need to point to the setup.iss file , it will be loaded automatically but it should be named as "Setup.iss" and created as shown in the first step ,, I distributed the Package using SCCM using the same Sytnax and it Worked , I really need to thank you all :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.