AmrelMahdy Posted November 20, 2012 Report post Posted November 20, 2012 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, Quote Share this post Link to post Share on other sites More sharing options...
Peter van der Woude Posted November 20, 2012 Report post Posted November 20, 2012 Use the batch variable %~dp0 Quote Share this post Link to post Share on other sites More sharing options...
AmrelMahdy Posted November 21, 2012 Report post Posted November 21, 2012 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 ? Quote Share this post Link to post Share on other sites More sharing options...
Peter van der Woude Posted November 21, 2012 Report post Posted November 21, 2012 Put both files in your package and add a create a batchfile with a command like "%~dp0setup.exe" /s /f1"%~dp0setup.iss" and then use the batchfile as the program. Quote Share this post Link to post Share on other sites More sharing options...
Peter33 Posted November 21, 2012 Report post Posted November 21, 2012 Also add as last line "exit /b %errorlevel%". This will return the exit code of the setup to the client. Quote Share this post Link to post Share on other sites More sharing options...
AmrelMahdy Posted November 22, 2012 Report post Posted November 22, 2012 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 Quote Share this post Link to post Share on other sites More sharing options...