Hi,
I have to install a bigger package (some 300 MB) from a Server share by running an .exe file from there. I think running a batch can do that. So I created one StartPackageInstall,bat:
@echo offset ClientShare=\\servername\packageshare
set logfile=%TEMP%\PackageInstallScript.log
echo Start logging Package Install on %date% %time% >%logfile%
echo ----------------------------------------------- >>%logfile%
echo ClientShare is %ClientShare%>>%logfile%
echo logfile is %logfile%>>%logfile%
echo ----------------------------------------------- >>%logfile%if not exist %ClientShare%\Setup.exe (
echo ###ERROR - Share not found >>%logfile%
GOTO Fin
) else (
echo ###OK - Share found >>%logfile%
GOTO ShareOk):ShareOk
echo ----------------------------------------------- >>%logfile%
start %ClientShare%\Setup.exe
if errorlevel=0 echo The Installer started successfully >>%logfile%
if errorlevel>0 echo An error occured: Errorlevel %errorlevel%. >>%logfile%
echo ----------------------------------------------- >>%logfile%:Fin
Then I built a package using the following parts:
- Start at empty package, target Systems should be Windows 7 and 10 Clients (x64/x86)
- Prerequisite rule: Windows Version greater 7
- Package: C:\Windows\system32\ctfmon.exe (because it is small enough as an dummy-package)
- use Package Boot
- include additional files (packageboot.xml and .exe, the dummy.exe (ctfmon.exe) and my StartInstallPackage.bat)
- Removed all samples from Packageboot.XML and use only "Run ctfmon"
- --> now, while I'm writing I realize, that my change here - from ctfmon.exe to cmd was not recognized by the package, so the Commandline Parameters "/C StartPackageInstall.bat" was wrong if ctfmon was started
- Applicability Rule: Windows Version greater 7 and a "File not Exists"-Rule
- Installed Rule: only a "File Exists"-Rule
After publish this package I tried to install on a Client and got the following error:
Computer: LAPTOP.DOMAIN.local
Operation: Install
Object: Install PackageName from Share
Status: Failed
Details: There was an error with the MSI installer. For details, enable MSI logging and then run the installer again. For additional information, see http://www.solarwinds.com/documentation/kbloader.aspx?kb=4081&lang=en
Exception Details:
Install failed. Schwerwiegender Fehler bei der Installation HRESULT: 0x80070643
What can I do to solve this? I can't remember, where to run the cmd calling the Batch. The next Problem I hit most times are wrong applicability and installed rules, so a package is run every time.