I am by no means a programmer but have been tasked with essentially just that. I've been assigned to update a network of computers using our pre-existing distribution setup, think sccm
, except can ONLY do .exe/msi files.
Anyways, the batch I wrote works fantastically; except I need it to run silently. Essentially here are the tasks it performs:
- Makes a log on a dedicated network share utilizing the
%computername%
and adds a line every time something happens, and reports the success using%errorlevel%
with included time and date stamp. - Checks to see if a specific program is running, if so it waits 60 minutes and tries again, IF NOT then it checks the version previously installed
- Depending on the version it will use
robocopy
to replace the outdated files with the new ones. - Then sets TNS name path
- Configures a DB that was just installed based on computer name
- Modifies the registry
- Puts an icon on the desktop
- reports if all tasks completed properly in log and exits.
The batch pulls everything from a network share and saves the logs to the same share. Because on the amount of time it took me to just make this, I am hoping I can somehow convert to a .exe or .msi, AND run is silently. I suppose I could re-write it in a language I am unfamiliar with if I had to.
I have tried a couple of methods; iexpress which works great, but no silent option; Bat To EXE converter which works but refuses to compile if I select silent; and finally 7zip using 7zS.sfx, but once compiled it refuses to run. For all of the exes I have been poking around using resource hacker to adjust the software information, icon, Microsoft compatibility, etc etc etc. I was pointed towards Inno Setup but found it cannot create silent flags, and most articles simply say to make an icon and put the flag in there, that is a poor solution to my problem.
Where should I even start?