![]() ![]() I hereby grant any person the right to use any code I post, that I am the original author of, on the forums, unless I've specifically stated otherwise in the code or the thread post. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude Give a programmer the correct code and he can do his work for a day. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to. ![]() If I posted any code, assume that code was written using the latest release version unless stated otherwise. SilentInstall = " & $SilentInstall & ", OS Architecture = " & ) _CheckIfAdmin() not needed on most installs since the #requireadmin immediately prompts to run as admin if not $SilentInstall then ProgressOn ( $appTitle, "Staging Files", "Please Wait." ,- 1 ,- 1, 16 ) _Log ( "Staging files" ) FileInstall ( "install_flash_player_12_plugin.msi", $installDir & "\install_flash_player_12_plugin.msi", 1 ) FileInstall ( "Firefox Setup25.exe", $installDir & "\Firefox Setup25.exe", 1 ) firefox must be closed if we are going to update it and install flash player _Log("Closing firefox") ProgressSet(50) ProcessClose("firefox.exe") ProgressSet ( 100, "Installing Firefox 25" ) RunWait ( '"' & $installDir & '\FirefoxSetup25.exe -ms"' ) _Log ( "Install returned " & $ret1 & ", & & ", & ) remove the original settings Log ( "Deleting default settings" ) FileDelete ( & "\Mozilla Firefox\override.ini" ) FileDelete ( & "\Mozilla Firefox\mozilla.cfg" ) FileDelete ( & "\Mozilla Firefox\defaults\pref\local-settings.js" ) DirRemove ( "C:\Program Files\Mozilla Firefox" ) OR DirRemove ( "C:\Program Files(x86)\Mozilla Firefox" ) _Log ( "File delete returned " & $ret1 & ", & & ", & ) import the default settings _Log ( "Importing default settings" ) FileInstall ( "override.ini", & "\Mozilla Firefox\override.ini", 1 ) FileInstall ( "mozilla.cfg", & "\Mozilla Firefox\mozilla.cfg", 1 ) FileInstall ( "local-settings.js", & "\Mozilla Firefox\defaults\pref\local-settings.js", 1 ) _Log ( "File install returned " & $ret1 & ", & & ", & ) $source = "\Mozilla Firefox Version 25" $destination = & "\AppData\Roaming" customize firefox profile settings ProgressSet ( 100, "deleting the old directory" ) DirRemove ( & "\AppData\Roaming\Mozilla", 1 ) _Log ( "Directory remove returned " & $ret1 & ", & & ", & ) customize firefox profile settings ProgressSet ( 100, "Copying the appropriate files to directory" ) DirCopy ( $source & "\Mozilla", & "\AppData\Roaming", $FC_OVERWRITE ) _Log ( "Directory copy returned " & $ret1 & ", & & ", & ) FileDelete ( & "\Mozilla Firefox.lnk" ) _Log ( "file delete returned" & $ret1 & ", & & ", & ) now install flash player (firefox must be closed for this to work) ProgressSet ( 100, "Checking and installing the Flash Player 12 Plugin" ) $flashVer = RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Flash Player Plugin","DisplayVersion") _Log ( "Installing flash player plugin" ) RunWait ( 'msiexec /qn /i"' & $installDir & '\install_flash_player_12_plugin.msi"', $installDir ) _Log ( "Install returned " & $ret1 & ", & & ", & ) ProgressOff ( ) exit if not $SilentInstall Then MsgBox ( 64, $appTitle, "Install completed with return code " & $ret1, 300 ) EndIf exit $ret1 Expand collapse popup #include #NoTrayIcon #RequireAdmin $SilentInstall = False $installDir = "C:\Admin\AppUpd\Browsers\Firefox" $logFile = $installDir & "\" & & ".log" $logFileSubApp = $installDir & "\" & & "_bundled_app.log" $logEntries = 0 $appTitle = "Mozilla Firefox 25 Install Launcher" $ret1 = 0 $fileName = "Firefox Setup.exe" $versionCheck = "25.0" command options /s if $cmdLine > 0 then for $a = 1 to $cmdLine if StringLeft ( $cmdLine, 1 ) = "-" then $cmdLine = "/" & StringMid ( $cmdLine, 1 ) EndIf Switch $cmdLine Case "/s", "/q", "/silent", "/quiet" $SilentInstall = True EndSwitch Next EndIf start the log DirCreate ( $installDir ) _Log ( "Log Started. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |