/bundles/itninjaweb/img/Breadcrumb_cap_w.png

Blog Posts tagged with Run Silent

Ask a question

Silent deploy Mozilla Firefox 22.0 on W7 32bit/64bit (Hybrid)

1. Download the newest offline installer: http://www.mozilla.org/en-US/firefox/all.html

2. Create a new text file called 'override.ini' and copy in the following information:

[XRE]

EnableProfileMigrator=false

 

 

 3. Create a new text file called 'local-settings.js' and copy in the folling information:

pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg");

 

 

 

 

 4. Create a new text file called 'mozilla.cfg' and copy in the following information:

//Firefox Default Settings

// set Firefox Default homepage

pref("browser.startup.homepage",https://yourcompany.com);

// disable default browser check

pref("browser.shell.checkDefaultBrowser", false);

pref("browser.startup.homepage_override.mstone", "ignore");

// disable application updates

pref("app.update.enabled", false)

// disables the 'know your rights' button from displaying on first run

pref("browser.rights.3.shown", true);

// disables the request to send performance data from displaying

pref("toolkit.telemetry.prompted", 2); pref("toolkit.telemetry.rejected", true);

// browser settings

pref("browser.migration.version", 1);

pref("browser.places.importBookmarksHTML", false);

pref("browser.places.smartBookmarksVersion", 1);

pref("browser.preferences.advanced.selectedTabIndex", 1);

pref("browser.rights.3.shown", true); pref("browser.shell.checkDefaultBrowser", false);

pref("browser.startup.homepage", "https://yourcompany.com");

pref("browser.startup.homepage_override.mstone", "rv:1.9.2");

pref("intl.charsetmenu.browser.cache", "UTF-8");

// network settings

pref("network.automatic-ntlm-auth.trusted-uris", "fifa.org");

pref("network.cookie.prefsMigrated", true);

pref("network.proxy.autoconfig_url", "http://proxy.pac");

pref("network.proxy.type", 2);

pref("privacy.sanitize.migrateFx3Prefs", true);

// autoupdate disable

pref("app.update.auto", false);

pref("app.update.enabled", false);

pref("browser.search.update", false);

pref("extensions.update.enabled", false);

You can find all settings if you open Firefox and type about:config in the browse bar

5. Create a new text file called 'install.cmd' and copy in the following information:

@echo off

set AppName=Mozilla Firefox 22.0.0 32bit (EN) - 001

 

:: Path for logfiles.

set Logs=%SystemDrive%\Logs

if not exist %Logs% MD %Logs%

set LogFile=%Logs%\%AppName%.log

set LogFinal=%Logs%\finalcheck%AppName%.log

 

:: Installation

if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto AMD64

if /i "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto AMD64

if /i "%PROCESSOR_ARCHITECTURE%"=="x86" goto x86

echo %date% %time% ERROR: Processor Architecture "%PROCESSOR_ARCHITECTURE%" unknown >>"%LogFile%"

goto Error

 

:x86

echo %date% %time% Installation (32 bit) of %AppName% >>"%LogFile%"

cd /D %~dp0

"%~dp0Firefox Setup 22.0.exe" -ms

if exist "%programfiles%\Mozilla Firefox\" copy /Y "%~dp0override.ini" "%programfiles%\Mozilla Firefox\"

if exist "%programfiles%\Mozilla Firefox\" copy /Y "%~dp0mozilla.cfg" "%programfiles%\Mozilla Firefox\"

if exist "%programfiles%\Mozilla Firefox\" copy /Y "%~dp0local-settings.js" "%programfiles%\Mozilla Firefox\defaults\pref"

IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0

IF %ERRORLEVEL% NEQ 0 goto Error

goto cleanup

 

:AMD64

echo %date% %time% Installation (64 bit) of %AppName% >>"%LogFile%"

cd /D %~dp0

"%~dp0Firefox Setup 22.0.exe" -ms

if exist "%ProgramFiles(x86)%\Mozilla Firefox\" copy /Y "%~dp0override.ini" "%ProgramFiles(x86)%\Mozilla Firefox\"

if exist "%ProgramFiles(x86)%\Mozilla Firefox\" copy /Y "%~dp0mozilla.cfg" "%ProgramFiles(x86)%\Mozilla Firefox\"

if exist "%ProgramFiles(x86)%\Mozilla Firefox\" copy /Y "%~dp0local-settings.js" "%ProgramFiles(x86)%\Mozilla Firefox\defaults\pref"

IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0.

IF %ERRORLEVEL% NEQ 0 goto Error

goto cleanup

 

:: Cleanup

:Cleanup

if exist "%ALLUSERSPROFILE%\Start Menu\Programs\Mozilla Firefox.lnk" del /f /q "%ALLUSERSPROFILE%\Start Menu\Programs\Mozilla Firefox.lnk"

if exist "%public%\Desktop\Mozilla Firefox.lnk" del "%public%\Desktop\Mozilla Firefox.lnk"

goto End

:: Errorhandler

:Error

echo %date% %time% %AppName% >>"%LogFinal%"

if %errorlevel% EQU 1 echo ERROR 1 - [NOT-SUCCESS] - Fatal Error >>"%LogFinal%"

if %errorlevel% EQU 13 echo ERROR 13 - [INVALID_DATA] - The data is invalid >>"%LogFinal%"

if %errorlevel% EQU 87 echo ERROR 87 - [INVALID_PARAMETER] - One of the parameters was invalid. >>"%LogFinal%"

if %errorlevel% EQU 1601 echo ERROR 1601 - [FAILURE] - The Windows Installer service could not be accessed >>"%LogFinal%"

if %errorlevel% EQU 1602 echo ERROR 1602 - [INSTALL_USEREXIT] - User cancel installation >>"%LogFinal%"

if %errorlevel% EQU 1603 echo ERROR 1603 - [INSTALL_FAILURE] - Fatal error during installation >>"%LogFinal%"

if %errorlevel% EQU 1604 echo ERROR 1604 - [INSTALL_SUSPEND] - Installation suspended, incomplete >>"%LogFinal%"

if %errorlevel% EQU 1608 echo ERROR 1608 - [UNKNOWN_PROPERTY] - Unknown property >>"%LogFinal%"

if %errorlevel% EQU 1610 echo ERROR 1610 - [BAD_CONFIGURATION] - The configuration data for this product is corrupt >>"%LogFinal%"

if %errorlevel% EQU 1612 echo ERROR 1612 - [INSTALL_SOURCE_ABSENT] - The installation source for this product is not available >>"%LogFinal%"

if %errorlevel% EQU 1613 echo ERROR 1613 - [INSTALL_PACKAGE_VERSION] - Servicepack required >>"%LogFinal%"

if %errorlevel% EQU 1618 echo ERROR 1618 - [INSTALL_ALREADY_RUNNING] - Another installation is already in progress >>"%LogFinal%"

if %errorlevel% EQU 1619 echo ERROR 1619 - [_INSTALL_PACKAGE_OPEN] - This installation package could not be opened >>"%LogFinal%"

if %errorlevel% EQU 1621 echo ERROR 1621 - [INSTALL_UI_ERROR] -There was an error starting the Windows Installer >>"%LogFinal%"

if %errorlevel% EQU 1624 echo ERROR 1624 - [INSTALL_TRANSFORM_FAILURE] - Error applying transforms >>"%LogFinal%"

if %errorlevel% EQU 1639 echo ERROR 1639 - [INVALID_COMMAND_LINE] - Invalid command line argument >>"%LogFinal%"

if %errorlevel% EQU 3010 echo ERROR 3010 - [SUCCESS_REBOOT_REQUIRED] - A restart is required to complete >>"%LogFinal%"

echo %date% %time% ERROR: %ERRORLEVEL% >>"%LogFile%"

echo Error: %ERRORLEVEL%

echo.

 

:: End of Script

:End

echo %date% %time% End installation of %AppName% >>"%LogFile%"

echo End

 

 

 6. Create a new uninstall.cmd file and copy in the folling information:

@echo off

set AppName=Mozilla Firefox 22.0.0 32bit (EN) - 001

:: Path for logfiles.

set Logs=%SystemDrive%\Logs

if not exist %Logs% MD %Logs%

set LogFile=%Logs%\%AppName%.log

 

:: Uninstallation

if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto AMD64

if /i "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto AMD64

if /i "%PROCESSOR_ARCHITECTURE%"=="x86" goto x86

echo %date% %time% ERROR: Processor Architecture "%PROCESSOR_ARCHITECTURE%" unknown >>"%LogFile%"

goto Error

 

:x86

echo %date% %time% Start uninstallation of %AppName% >>"%LogFile%"

"%ProgramFiles(X86)%\Mozilla Maintenance Service\Uninstall.exe" /S

regedit /s "%~dp0delAddRemoveEintrag.reg"

IF %ERRORLEVEL% NEQ 0 goto Error

goto Cleanup

 

:AMD64

echo %date% %time% Start uninstallation of %AppName% >>"%LogFile%"

"%ProgramFiles(x86)%\Mozilla Maintenance Service\Uninstall.exe" /S

regedit /s "%~dp0delAddRemoveEintrag.reg"

IF %ERRORLEVEL% NEQ 0 goto Error

goto Cleanup

 

:: Cleanup

:Cleanup

if exist "%ALLUSERSPROFILE%\Start Menu\Programs\Communications\Mozilla Firefox.lnk" del /f /q "%ALLUSERSPROFILE%\Start Menu\Programs\Communications\Mozilla Firefox.lnk"

if exist "%PROGRAMFILES(x86)%\Mozilla Firefox\" rmdir /s /q "%PROGRAMFILES(x86)%\Mozilla Firefox\"

:: Errorhandler

goto End

:Error

echo %date% %time% ERROR: %ERRORLEVEL% >>"%LogFile%"

echo Error: %ERRORLEVEL%

echo.

 

:: End of Script

:End

echo %date% %time% End uninstallation of %AppName% >>"%LogFile%"

echo End

 

That's it, now you can deploy the new Firefox with every deployment software.

If you have any questions, feel free to ask.

View comments (1)

Java 7 Update 25 Best way to deploy with customized settings

INSTRUCTIONS

 How to deploy Java 7 Update 25 with customized settings:

1. 

Download the latest offline installer: 

http://www.java.com/de/download/manual.jsp

 

2.

Install Java manualy on a test machine (32bit/64bit)

After the installation you can find a .MSI setup in the following folder:

“%USERPROFILE%\AppData\LocalLow\Sun\Java”

 

3.

Now you can create a .MST with Orca or InstEd and under the "Property table" add following PROPERTIES: 

AUTOUPDATECHECK=0

IEEXPLORER=1

JAVAUPDATE=0

JU=0

MOZILLA=1

RebootYesNo=No

 

 4.

Switch to the "Registry Table" and add this reg key: 

 
 

Registry = NotifyDownload

Root = 2

Key = Software\JavaSoft\Java Update\Policy

Name = NotifyDownload

Value = 0

Component_ = jz

 

 

 

5.

Create a new “Deployment.config” and copy in the folling information:

 

deployment.system.config.mandatory=true

 

6.

Copy the “Deployment.properties” file from „%USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment“ and add following settings

deployment.security.mixcode=HIDE_RUN

deployment.security.level=MEDIUM

deployment.javaws.autodownload=NEVER

 

 

7.

Installation:

msiexec.exe /QN /L* "%Logs%\%AppName%.msi.log" /i "jre1.7.0_21.msi" TRANSFORMS="custom.mst" REBOOT=ReallySuppress

Copy job for the settings:

copy /y “%~dp0deployment.config” “C:\WINDOWS\sun\java\deployment\deployment.config” >>"%LogFile%"

copy /y “%~dp0deployment.properties” “C:\WINDOWS\sun\java\deployment\deployment.properties” >>"%LogFile%"

That’s it.

 

 

8.

If you know how, for sure you can integrate the property files in to the .MST file:

But I think for the most people it is more easy with a normal copy job. 

More settings can be found on:

http://docs.oracle.com/javase/7/docs/technotes/guides/deployment/deployment-guide/properties.html

View comments (9)

Silent Deploy Adobe Creative Suite CS 6.0 Premium

How to:

  1. Download the newest release of AAMEE 

Adobe Application Manager, Enterprise Edition 3.1 (Windows)

 2. Start Adobe Application Manager  
 3. Go trough the wizard and made your configurations  
 4. Create an "install.cmd" file
 5. Silent Install Adobe Air :: Adobe Air

"%~dp0Exceptions\AdobeDreamweaverWidgetsBrowser1.0-mul\AdobeAIRInstaller.exe" -silent -eulaAccepted
reg add "HKLM\SOFTWARE\Policies\Adobe\AIR" /v UpdateDisabled /t REG_DWORD /d 1 /f

 6. Silent Install Adobe Helper :: Adobe Helper

"%~dp0Exceptions\AdobeHelp\InstallAdobeHelp.exe" appVersion=4.0.244 appId=chc pubId=4875E02D9FB21EE389F73B8D1702B320485DF8CE.1 installerArg1=-silent installerArg2=-eulaAccepted installerArg3=-programMenu installerArg4=AdobeHelp.air

 7. Silent Install Adobe PDF Settings :: Adobe PDF Settings

msiexec.exe /i "%~dp0Exceptions\AdobePDFSettings11-mul\AdobePDFSettings11-mul.msi" /qn

 8. Silent Install Adobe Media Player :: Adobe Media Player

msiexec.exe /i "%~dp0Exceptions\Adobe Media Player\Adobe Media Player\AdobeMedia.msi" TRANSFORMS="%~dp0prereq\Adobe Media Player\custom.mst" /qn

 9. Silent Install Adobe Creative Suite :: Adobe Creative Suite CS6

msiexec.exe /QN /L* "%Logs%\%AppName%.msi.log" /i "%~dp0Build\Adobe CS Design Premium 6.0 64bit (DE) - 001.msi" REBOOT=ReallySuppress

 10. Silent Install Adobe Acrobat Reader Pro X :: Adobe Acrobat Reader Pro X

msiexec.exe /QN /L* "%Logs%\%AppName%.msi.log" /i "%~dp0Exceptions\AcrobatProfessional10.0-EFG\AcroPro.msi" EULA_ACCEPT=YES REGISTRATION_SUPPRESS=YES SUITEMODE=1 INSTALLLEVEL=101 AS_DISABLE_LEGACY_COLOR=1 IGNOREAAM=1 TRANSFORMS="%~dp0Exceptions\AcrobatProfessional10.0-EFG\en_US.mst" REBOOT=ReallySuppress

 

The full install.cmd should look like this:

@echo off
set AppName=Adobe Creative Suite Design Premium 6.0 64bit (EN) - 001

:: Path for logfiles. Change for your company
set Logs=%SystemDrive%\Logs
if exist %SystemDrive%\Wininst set Inst=%SystemDrive%\Wininst
if exist %SystemDrive%\Srv08inst set Inst=%SystemDrive%\Srv08inst
set Logs=%Inst%\Logs
if not exist %Logs% MD %Logs%
set LogFile=%Logs%\%AppName%.log
set LogFinal=%Logs%\finalcheck.log

:: Installation
if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto AMD64
if /i "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto AMD64
if /i "%PROCESSOR_ARCHITECTURE%"=="x86" goto x86
echo %date% %time% ERROR: Processor Architecture "%PROCESSOR_ARCHITECTURE%" unknown >>"%LogFile%"
goto Error

:x86 (It is just a 64bit package)

goto End

:AMD64
echo %date% %time% Installation of %AppName% >>"%LogFile%"
cd /D %~dp0
:: Adobe Air
"%~dp0Exceptions\AdobeDreamweaverWidgetsBrowser1.0-mul\AdobeAIRInstaller.exe" -silent -eulaAccepted
reg add "HKLM\SOFTWARE\Policies\Adobe\AIR" /v UpdateDisabled /t REG_DWORD /d 1 /f
IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0
IF %ERRORLEVEL% EQU 259 set ERRORLEVEL=0
IF %ERRORLEVEL% NEQ 0 goto Error

:: Adobe Helper
"%~dp0Exceptions\AdobeHelp\InstallAdobeHelp.exe" appVersion=4.0.244 appId=chc pubId=4875E02D9FB21EE389F73B8D1702B320485DF8CE.1 installerArg1=-silent installerArg2=-eulaAccepted installerArg3=-programMenu installerArg4=AdobeHelp.air
IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0
IF %ERRORLEVEL% EQU 259 set ERRORLEVEL=0
IF %ERRORLEVEL% NEQ 0 goto Error

:: Adobe PDF Settings
msiexec.exe /i "%~dp0Exceptions\AdobePDFSettings11-mul\AdobePDFSettings11-mul.msi" /qn
IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0
IF %ERRORLEVEL% EQU 259 set ERRORLEVEL=0
IF %ERRORLEVEL% NEQ 0 goto Error

:: Adobe Media Player
msiexec.exe /i "%~dp0Exceptions\Adobe Media Player\Adobe Media Player\AdobeMedia.msi" TRANSFORMS="%~dp0prereq\Adobe Media Player\custom.mst" /qn
IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0
IF %ERRORLEVEL% EQU 259 set ERRORLEVEL=0
IF %ERRORLEVEL% NEQ 0 goto Error

:: Adobe Creative Suite CS6
msiexec.exe /QN /L* "%Logs%\%AppName%.msi.log" /i "%~dp0Build\Adobe CS Design Premium 6.0 64bit (DE) - 001.msi" REBOOT=ReallySuppress
IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0
IF %ERRORLEVEL% EQU 259 set ERRORLEVEL=0
IF %ERRORLEVEL% NEQ 0 goto Error

:: Adobe Acrobat Reader Pro X
msiexec.exe /QN /L* "%Logs%\%AppName%.msi.log" /i "%~dp0Exceptions\AcrobatProfessional10.0-EFG\AcroPro.msi" EULA_ACCEPT=YES REGISTRATION_SUPPRESS=YES SUITEMODE=1 INSTALLLEVEL=101 AS_DISABLE_LEGACY_COLOR=1 IGNOREAAM=1 TRANSFORMS="%~dp0Exceptions\AcrobatProfessional10.0-EFG\en_US.mst" REBOOT=ReallySuppress
IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0
IF %ERRORLEVEL% EQU 259 set ERRORLEVEL=0
IF %ERRORLEVEL% NEQ 0 goto Error
regedit /s "%~dp0AddAcrobatX_Machine.reg"
goto cleanup

:: Cleanup --> Change for your company
:Cleanup
if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe" rmdir /q /s "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe"
if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe Acrobat Distiller X.lnk" move /y "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe Acrobat Distiller X.lnk" "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe Design Standard CS6\Adobe Acrobat Distiller X.lnk"
if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe Acrobat X Pro.lnk" move /y "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe Acrobat X Pro.lnk" "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe Design Standard CS6\Adobe Acrobat X Pro.lnk"
if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe LiveCycle ES2\Adobe LiveCycle Designer ES2.lnk" copy /y "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe LiveCycle ES2\Adobe LiveCycle Designer ES2.lnk" "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe Design Standard CS6\Adobe LiveCycle Designer ES2.lnk"
if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe LiveCycle ES2" rmdir /q /s "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe LiveCycle ES2"
if exist "%PUBLIC%\Desktop\Adobe Acrobat X Pro.lnk" del /f /q "%PUBLIC%\Desktop\Adobe Acrobat X Pro.lnk"

:: Errorhandler
goto End
:Error
echo %date% %time% %AppName% >>"%LogFinal%"
if %errorlevel% EQU 1 echo ERROR 1 - [NOT-SUCCESS] - Fatal Error >>"%LogFinal%"
if %errorlevel% EQU 13 echo ERROR 13 - [INVALID_DATA] - The data is invalid >>"%LogFinal%"
if %errorlevel% EQU 87 echo ERROR 87 - [INVALID_PARAMETER] - One of the parameters was invalid. >>"%LogFinal%"
if %errorlevel% EQU 1601 echo ERROR 1601 - [FAILURE] - The Windows Installer service could not be accessed >>"%LogFinal%"
if %errorlevel% EQU 1602 echo ERROR 1602 - [INSTALL_USEREXIT] - User cancel installation >>"%LogFinal%"
if %errorlevel% EQU 1603 echo ERROR 1603 - [INSTALL_FAILURE] - Fatal error during installation >>"%LogFinal%"
if %errorlevel% EQU 1604 echo ERROR 1604 - [INSTALL_SUSPEND] - Installation suspended, incomplete >>"%LogFinal%"
if %errorlevel% EQU 1608 echo ERROR 1608 - [UNKNOWN_PROPERTY] - Unknown property >>"%LogFinal%"
if %errorlevel% EQU 1610 echo ERROR 1610 - [BAD_CONFIGURATION] - The configuration data for this product is corrupt >>"%LogFinal%"
if %errorlevel% EQU 1612 echo ERROR 1612 - [INSTALL_SOURCE_ABSENT] - The installation source for this product is not available >>"%LogFinal%"
if %errorlevel% EQU 1613 echo ERROR 1613 - [INSTALL_PACKAGE_VERSION] - Servicepack required >>"%LogFinal%"
if %errorlevel% EQU 1618 echo ERROR 1618 - [INSTALL_ALREADY_RUNNING] - Another installation is already in progress >>"%LogFinal%"
if %errorlevel% EQU 1619 echo ERROR 1619 - [_INSTALL_PACKAGE_OPEN] - This installation package could not be opened >>"%LogFinal%"
if %errorlevel% EQU 1621 echo ERROR 1621 - [INSTALL_UI_ERROR] -There was an error starting the Windows Installer >>"%LogFinal%"
if %errorlevel% EQU 1624 echo ERROR 1624 - [INSTALL_TRANSFORM_FAILURE] - Error applying transforms >>"%LogFinal%"
if %errorlevel% EQU 1639 echo ERROR 1639 - [INVALID_COMMAND_LINE] - Invalid command line argument >>"%LogFinal%"
if %errorlevel% EQU 3010 echo ERROR 3010 - [SUCCESS_REBOOT_REQUIRED] - A restart is required to complete >>"%LogFinal%"
echo %date% %time% ERROR: %ERRORLEVEL% >>"%LogFile%"
echo Error: %ERRORLEVEL%
if exist "%Logs%\finalcheck.log" copy /y "%Inst%\Scripts\BITTE ANSCHAUEN.lnk" "%PUBLIC%\Desktop\BITTE ANSCHAUEN.lnk"
echo.

:: End of Script
:End
echo %date% %time% End installation of %AppName% >>"%LogFile%"
echo End

Create an "unintall.cmd" file

@echo off
set AppName=Adobe Creative Suite Design Standard 6.0 64bit (DE) - 001

:: Path for logfiles.
set Logs=%SystemDrive%\Logs
if exist %SystemDrive%\Wininst set Logs=%SystemDrive%\Wininst\Logs
if exist %SystemDrive%\Vistainst set Logs=%SystemDrive%\Vistainst\Logs
if exist %SystemDrive%\Srv08inst set Logs=%SystemDrive%\Srv08inst\Logs
if not exist %Logs% MD %Logs%
set LogFile=%Logs%\%AppName%.log

:: Uninstallation
echo %date% %time% Start uninstallation of %AppName% >>"%LogFile%"
:: CS6
MsiExec.exe /X{4B71EED3-2160-4B78-BE5E-76A065BFDC6F}
:: Adobe Air
MsiExec.exe /I{14DC0059-00F1-4F62-BD1A-AB23CD51A95E}
:: Adobe Media Player
MsiExec.exe /X{DE3A9DC5-9A5D-6485-9662-347162C7E4CA}
:: Adobe Acrobat X
MsiExec.exe /X{AC76BA86-1033-F400-7760-000000000005}
IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0
IF %ERRORLEVEL% NEQ 0 goto Error
rem regedit /s "%~dp0delAddRemoveEintrag.reg"
IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0
IF %ERRORLEVEL% NEQ 0 goto Error

:: Cleanup
rem if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\[Programm].lnk" del /q /f "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\[Programm].lnk"

:: Errorhandler
goto End
:Error
echo %date% %time% ERROR: %ERRORLEVEL% >>"%LogFile%"
echo Error: %ERRORLEVEL%
echo.

:: End of Script
:End
echo %date% %time% End uninstallation of %AppName% >>"%LogFile%"
echo End

View comments (1)

How to hide running a batch file from a kscript with version 5.5 and 6.0

Ever since I upgraded the k1000 the users started complaining about the little black windows that popped by when running kscripts using either cscript /c or a cmd /c scripts.  I found a way to easily hide the vb scripts was start using wscript vs cscript.  The disadvantage is - do not have a script error or the user gets a popup.

I have found a simple vb script to hide my batch file but needed the full path to get the script to call the batch file.

the script is:


I can now call uninstalls, exe's reg changes via the bats invisible to the user without needing the path.  Just needed to start the wscript call in the $(KACE_DEPENDENCY_DIR) and then it finds the bat without problems.

 

View comments (2)
Showing 1 - 4 of 4 results

Top Contributors

Talk About Microsoft App-V