Does anyone have an example of deploying and running a .bat file that uses an .iss file? We are having issues. :( Thanks!
0 Comments   [ + ] Show Comments


Please log in to comment

Community Chosen Answer


Here's an example of a BAT file that we use to install an application that uses a .iss file:

@echo off


REM Make sure we're executing from the same directory as the BAT file

cd /d "%~dp0"


REM Run the setup

setup.exe /s /f1"%~dp0silent.iss"

As you can see, one of the things I found useful is the %~dp0, which expands out to the full patch of the batch file being run. As long as the batch file is in the same directory as all the setup files (which it would be if you zipped it all up and deployed from K1000) .

I've also found that some setups don't like using long file names for the .iss file. If that's the case, you can use %~dps0, which expands out to the short filename version of the path.

Answered 07/28/2014 by: BHC-Austin
Fourth Degree Black Belt

Please log in to comment



That does seem a bit cryptic. But the answers supplied match what is in my head.

I use the %~dp0 thing on ALL of the installs I do (for the EXE or MSI and the ISS or MST) . Even though most are deployed via SCCM. It provides a nice simple test of a silent install before SCCM gets involved.

Send us a few more clues.... you will get some better clearer answers

Answered 08/14/2014 by: Badger
Red Belt

Please log in to comment
You need to clarify and give examples of what you are doing at the moment.
A bat file does not "use" an .iss file in any meaning I can figure out.
Are you trying to say that you are running an Installshield EXE and trying to pass it an .iss file that should enable a silent installation?  If you are having issues with this, we need to know what the issues are, as there are many possibilities and there is no point covering them all as you could find all this via Google.
Answered 07/28/2014 by: EdT
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity