Content Type
Profiles
Forums
Events
Everything posted by Doc Symbiosis
-
Classic Start Menu not applied
Doc Symbiosis replied to Marthax's topic in Unattended Windows 2000/XP/2003
Works fine for me with these two settings. Really have no idea, what's wrong. -
start programs with high priority
Doc Symbiosis replied to Doc Symbiosis's topic in Application Installs
Even the realtime priority doesn't work with bsplayer, but for firefox it does I tried %windir%\system32\cmd.exe /c start "runrealtime" /realtime "c:\program files\bsplayer\bsplayer.exe", but bsplayer still starts with normal priority. -
I don't know, whether it's the right forum, but I thought it's the most adequate one. Anyway, does anyone know, why it fails to start some programs with high priority? Most programs you can start with "start /high program.exe", and it starts with high priority,i.e. Nero, Acrobat Reader, Cdex, Ghostview and Daemon Tools, but it fails with Bsplayer, Winamp and Firefox. Help would be appreciated.
-
[help]command for c:\program files\aaa\bbb.exe
Doc Symbiosis replied to swbchen's topic in Windows Post-Install Wizard (WPI)
The following should work: prog[pn]=['Execute bbb.exe'] uid[pn]=['BBB'] desc[pn]=['Executes bbb.exe''] ordr[pn]=[1] cmd1[pn]=['c:\\program files\\aaa\\bbb.exe'] dflt[pn]=['yes'] cat[pn]=['Execute'] pn++ Have an eye on the double backslashes -
Don't know, if this interests, but you could use the following cmd file to do sort the start menu automatically, which coveres both start menu cases: start /wait reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu" /f start /wait reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu2" /f start /wait taskkill /im explorer.exe /F explorer.exe This works be cause the HKCU part of the registry reloads every time you restart the explorer.exe.
-
I don't know a proper webpage for this, but the registry settings you need the registrykeys for can simply be detected with installrite or any similar program. So for example: ;-------------------------------------------------------------------------- ;Set Internet Explorer Security Level To High ;-------------------------------------------- [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3] "1001"=dword:00000003 "1200"=dword:00000003 "1400"=dword:00000003 "1402"=dword:00000003 "1405"=dword:00000003 "1407"=dword:00000003 "1604"=dword:00000001 "1606"=dword:00000003 "1607"=dword:00000003 "1608"=dword:00000003 "1800"=dword:00000003 "1802"=dword:00000001 "1803"=dword:00000003 "1804"=dword:00000003 "1A00"=dword:00010000 "1A02"=dword:00000003 "1A03"=dword:00000003 "1A05"=dword:00000003 "1A06"=dword:00000003 "1C00"=dword:00000000 "1E05"=dword:00010000 "2100"=dword:00000003 "2101"=dword:00000003 "2300"=dword:00000003 "2000"=dword:00000003
-
How Do I use the .iss file for setup?
-
Short batch file question!
Doc Symbiosis replied to Fascix's topic in Unattended Windows 2000/XP/2003
It should work, but in general you should use the del /F /Q command to make sure that writeprotected also are deleted without request. -
The key, you added to the registry, sets only the value, which is displayed in your sound control. The following should do the trick: ;Windows Sound-Schema = "No Sounds" ;-------------------------------------- [HKEY_CURRENT_USER\AppEvents\Schemes] @=".none" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\.Default\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\CriticalBatteryAlarm\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\DeviceConnect\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\DeviceDisconnect\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\DeviceFail\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\LowBatteryAlarm\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\MailBeep\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemAsterisk\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemExclamation\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemExit\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemHand\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemNotification\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemStart\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\WindowsLogoff\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\WindowsLogon\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Conf\Person Joins\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Conf\Person Leaves\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Conf\Receive Call\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Conf\Receive Request to Join\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\BlockedPopup\.current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\EmptyRecycleBin\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.Current] @="" [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\SecurityBand\.current] @=""
-
Using WPI via network
Doc Symbiosis replied to Bigtime5000's topic in Windows Post-Install Wizard (WPI)
Have a try with \\\\\\server\\share\\installdir\\setup.exe -
Network configuration
Doc Symbiosis replied to heatstroke's topic in Windows Post-Install Wizard (WPI)
Perhaps you can use a modification of the following vbs script. The scipt asks, if configure network with DHCP or set a static IP. when DHCP or an IP with 10. is entered, a proxy is automatically added to Mozillas defualt profile and to IE default profile: Set wshshell = CreateObject("WScript.Shell") Set fs = CreateObject("Scripting.FileSystemObject") ip = "134.76.210.86" mozpref ="\mozilla\defaults\pref\browser-prefs.js" msg = "Should be used a static IP "& VbCr &"(if not, DHCP is enabled)?" antwort = MsgBox(msg, vbYesNo + vbQuestion) if antwort = vbNo then befehl ="netsh interface ip set address source=dhcp name= "&"""Local Area Connection""" kommando = "%COMSPEC% /C " & befehl resultat = wshshell.Run ( kommando, 1, True ) befehl ="netsh interface ip delete dns name="&"""Local Area Connection""" & " addr=all" kommando = "%COMSPEC% /C " & befehl resultat = wshshell.Run ( kommando, 1, True ) befehl ="netsh interface ip delete wins name="&"""Local Area Connection""" & " addr=all" kommando = "%COMSPEC% /C " & befehl resultat = wshshell.Run ( kommando, 1, True ) proxy_eintragen(mozpref) WScript.Quit end if Do ip_neu = InputBox("Please enter the new IP:","Change IP", ip ) pos=InStrRev(ip_neu,".") gateway = Left(ip_neu,pos) &"254" If Left(ip_neu, 3) ="10." Then subnet ="255.255.255.0" Proxy_eintragen(mozpref) Else subnet="255.255.0.0" End If befehl ="netsh interface ip set address source=static name= "&"""Local Area Connection"""&" addr="& ip_neu &" mask="& subnet &" gateway="& gateway & " 1" kommando = "%COMSPEC% /C " & befehl resultat = wshshell.Run ( kommando, 1, True ) If Not resultat = 0 Then Msg ="Changing failed" & vbCR & "the IP was:" & ip_neu & vbCR Msg = Msg & vbCr & "Continue anyway?" antwort = MsgBox(Msg, vbYesNo + vbQuestion) End If Loop While ((Not resultat = 0) And (antwort = vbNo)) Sub Proxy_eintragen(preffile) programdir = wshshell.ExpandEnvironmentStrings("%programfiles%") preffile = programdir & preffile Set file = fs.Getfile(preffile) file.Attributes = file.Attributes And Not (8+16+64+128+256+1024+2048) And Not 1 Set textstream = fs.OpenTextFile(preffile, 8, True ) textstream.WriteLine "pref(""network.proxy.autoconfig_url"", ""http://www.mpibpc.gwdg.de/cgi-bin/proxy.pl""'>http://www.mpibpc.gwdg.de/cgi-bin/proxy.pl"" );" textstream.WriteLine "pref(""network.proxy.type"", 2);" textstream.close '--------------------------------------------------------------------------------- Set wmireg = GetObject("winmgmts:root\default:StdRegProv") Const HKCU = &H80000001 key1 = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" key2 = "Software\Microsoft\Windows\CurrentVersion\Internet Settings" result = wmireg.CreateKey(HKCU, key1) result = wmireg.SetBinaryValue(HKCU, key1,"DefaultConnectionSettings", Array(60,00,00,00,04,00,00,00,05,00,00,00,00,00,00,00,00,00,00,00,42,00,00,00,104,116,116,112,58,47, 47,119,119,119,46,109,112,105,98,112,99,46,103,119,100,103,46,100,101,47,99,103,105,45,98,105,110,47 ,112,114,111,120,121,46,112,108,00,00,00,00,00,00,00,00,96,148,157,150,203,30,197,01,01,00,00,00,10, 76,210,86,00,00,00,00,00,00,00,00)) result = wmireg.SetBinaryValue(HKCU, key1,"SavedLegacySettings", Array(60,00,00,00,06,00,00,00,05,00,00,00,00,00,00,00,00,00,00,00,42,00,00,00,104,116,116,112,58,47, 47,119,119,119,46,109,112,105,98,112,99,46,103,119,100,103,46,100,101,47,99,103,105,45,98,105,110,47 ,112,114,111,120,121,46,112,108,00,00,00,00,00,00,00,00,96,148,157,150,203,30,197,01,01,00,00,00,10, 76,210,86,00,00,00,00,00,00,00,00)) result = wmireg.CreateKey(HKCU, key2) result = wmireg.SetDWORDValue(HKCU, key2,"EnableAutodial",0) result = wmireg.SetStringValue(HKCU, key2,"AutoConfigURL","http://www.mpibpc.gwdg.de/cgi-bin/proxy.pl") 'Proxy im IE eintragen für den Default User Const HKU = &H80000003 key1 = ".Default\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" key2 = ".Default\Software\Microsoft\Windows\CurrentVersion\Internet Settings" result = wmireg.CreateKey(HKU, key1) result = wmireg.SetBinaryValue(HKU, key1,"DefaultConnectionSettings", Array(60,00,00,00,04,00,00,00,05,00,00,00,00,00,00,00,00,00,00,00,42,00,00,00,104,116,116,112,58,47, 47,119,119,119,46,109,112,105,98,112,99,46,103,119,100,103,46,100,101,47,99,103,105,45,98,105,110,47 ,112,114,111,120,121,46,112,108,00,00,00,00,00,00,00,00,96,148,157,150,203,30,197,01,01,00,00,00,10, 76,210,86,00,00,00,00,00,00,00,00)) result = wmireg.SetBinaryValue(HKU, key1,"SavedLegacySettings", Array(60,00,00,00,06,00,00,00,05,00,00,00,00,00,00,00,00,00,00,00,42,00,00,00,104,116,116,112,58,47, 47,119,119,119,46,109,112,105,98,112,99,46,103,119,100,103,46,100,101,47,99,103,105,45,98,105,110,47 ,112,114,111,120,121,46,112,108,00,00,00,00,00,00,00,00,96,148,157,150,203,30,197,01,01,00,00,00,10, 76,210,86,00,00,00,00,00,00,00,00)) result = wmireg.CreateKey(HKU, key2) result = wmireg.SetDWORDValue(HKU, key2,"EnableAutodial",0) result = wmireg.SetStringValue(HKU, key2,"AutoConfigURL","http://www.mpibpc.gwdg.de/cgi-bin/proxy.pl") End Sub -
I would prefer the following script to generate the xml file, because it's independent of the program files path. you call it with the path of the xml-file as parameter, e.g. generate_xml.cmd "%TEMP%\AdobeInstallerConfiguration.xml" -------------------------------------------------------------------------------------------- @echo off set datei="%1" echo ^<?xml version="1.0" encoding="UTF-8" ?^> > "%datei%" echo ^<AdobeInstallerConfiguration version="1.0"^> >> "%datei%" echo ^<InstallerInfo platform="win" silentMode="1" targetVolume="%PROGRAMFILES:~0,3%" targetPath="%PROGRAMFILES:~3%\Adobe\"/^> >> "%datei%" echo ^<InstallerInfo platform="mac" targetVolume="/" /^> >> "%datei%" echo ^<ProductInfo serial="0000-0000-0000-0000-0000-0000" licensedUserName="Adobe User" licensedUserCompany="Adobe Systems, Inc." /^> >> "%datei%" echo ^<Manifest^> >> "%datei%" echo ^<Product name="Adobe Photoshop CS2 and Adobe ImageReady CS2" selected="1" /^> >> "%datei%" echo ^<Product name="Adobe Illustrator CS2" selected="1" /^> >> "%datei%" echo ^<Product name="Adobe Acrobat 7.0 Professional" selected="1" /^> >> "%datei%" echo ^<Product name="Adobe GoLive CS2" selected="1" /^> >> "%datei%" echo ^<Product name="Adobe Version Cue CS2" selected="1" /^> >> "%datei%" echo ^<Product name="Adobe InDesign CS2" selected="1" /^> >> "%datei%" echo ^</Manifest^> >> "%datei%" echo ^</AdobeInstallerConfiguration^> >> "%datei%" exit ------------------------------------------------------------------------------------------ Then you can call the installer through start /wait Setup.exe - installerConfig "%TEMP%\AdobeInstallerConfiguration.xml" and finally delete the xml-file del %TEMP%\AdobeInstallerConfiguration.xml /Q /F just a thiought........................ will test it tomorrow
-
Help on Thunderbird Silent and Default
Doc Symbiosis replied to Nomuno's topic in Application Installs
Perhaps have a try with the following cmd file. It does the same like the file above, but is independent from the path, where the program files are located: SET KEY=HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Mozilla Thunderbird REG ADD HKEY_CURRENT_USER\Software\Clients\mail /ve /t REG_SZ /D "Mozilla Thunderbird" REG ADD HKEY_USERS\.Default\Software\Clients\mail /ve /t REG_SZ /D "Mozilla Thunderbird" REG ADD "%KEY%" /ve /t REG_SZ /D "Mozilla Thunderbird" /f REG ADD "%KEY%" /v "DLLPath" /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird\mozMapi32.dll" /f REG ADD "%KEY%\DefaultIcon" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe,0" /f REG ADD "%KEY%\shell\open\command" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe -mail" /f REG ADD "%KEY%\shell\properties" /ve /t REG_SZ /D "Thunderbird &Options" /f REG ADD "%KEY%\shell\properties\command" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe -options" /f REG ADD "%KEY%\protocols\mailto" /ve /t REG_SZ /D "URL:MailTo Protocol" /f REG ADD "%KEY%\protocols\mailto" /v "URL Protocol" /t REG_SZ /D "" /f REG ADD "%KEY%\protocols\mailto\DefaultIcon" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe,0" /f REG ADD "%KEY%\protocols\mailto\shell\open\command" /ve /t REG_SZ /D "%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe -compose" /f exit -
You've got to install the msi. with the /passive switch. The serial number you've got to enter into the setup.ini. Should look like this: [startup] CmdLine= SuppressWrongOS=Y ScriptDriven=0 ScriptVer=1.0.0.1 DotNetOptionalInstallIfSilent=N OnUpgrade=1 RequireExactLangMatch=0404,0804 Product=Adobe Acrobat 7.0 Professional PackageName=AcroPro.msi MsiVersion=2.0.2600.0 EnableLangDlg=N UI=1000 DoMaintenance=Y ProductCode={xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxx} ProductVersion=7.0.0 SuppressReboot=Y PackageCode={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx}
-
You could use a vbs-script, perhaps the following: ----------------------------------------------------------------------------------- 'This Script creates a shortcut to the second argument in location of the first argument(including the shortcut's name) 'The shortcut is set to start with maximized window, the icon is taken from the targetfile Set WSHShell = WScript.CreateObject("WScript.Shell") Set fs = WScript.CreateObject("Scripting.FileSystemObject") set oArgs = Wscript.Arguments SCutPath = oArgs.item(0) 'The first argument ProgPath = oArgs.item(1) 'The second argument SCutPath = wshshell.ExpandEnvironmentStrings(SCutPath) 'Expand environment variables to real path ProgPath = wshshell.ExpandEnvironmentStrings(ProgPath) 'Expand environment variables to real path Set scut = WSHShell.CreateShortcut(ScutPath &".lnk") scut.TargetPath = fs.GetAbsolutePathName(ProgPath) scut.WorkingDirectory = fs.GetParentFolderName(ProgPath) scut.IconLocation = ProgPath &",0" scut.Windowstyle = 3 scut.Save ------------------------------------------------------------------------------------------ you can call it from runonceex.cmd with the shortcutpath and progrmlocation as parameters, in which they are expanded, means that you can use environment variables like %PROGRAMFILES%, %ALLUSERSPROFILE% or %USERPROFILE% in your parameters. When you save it as $OEM$\$1\Install\cscut.vbs, you can call it from runoceex.cmd like REG ADD %KEY%\005 /VE /D "Create Shortcut" /f REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\cscut.vbs %ALLUSERSPROFILE%\Desktop %PROGRAMFILES%\Nero\Nero.exe" /f
-
@boooggy Have a try with the following link: http://www.adobe.com/support/techdocs/331297.html It's for the whole Adobe Suit, but also only for the Acrobat part. On monday, I'll have a look at work, how exactly I did it there, don't know it now.
-
HI there! When I try to install firefox through a network share, while calling the setup.exe directly ( e.g \\server\share$\install\firefox\setup.exe I get the error "Error uncompressing file \\server\share$\install\firefox\xpcom.xpi: 1", while when I first connect the share as drive z: and then run z:\install\firefox\setup.exe everything works fine. Anyone an idea, what the problem could be?
-
Dos Commands Inside Wpi?
Doc Symbiosis replied to cparker's topic in Windows Post-Install Wizard (WPI)
@Stalkie: Thanks for the post. I was searching a long time for a solution to the problem of running commands directly in WPI. -
Start /wait fails to start commands with spaces
Doc Symbiosis replied to clavicle's topic in Windows XP
What would I had to write, if I have a command with spaces within an option, like del "c:\documents and settings\user\desktop\*" /Q /F ? It seems, that the start /wait command doesn't like these addiotional quotas. I tried this start "" /wait "del "c:\documents and settings\user\desktop\*" /Q /F" How do I get this to run? -
cannot run commands
Doc Symbiosis replied to Doc Symbiosis's topic in Windows Post-Install Wizard (WPI)
It seems so that I need to have the full path, but which path to use for XP commands? -
New Version?
Doc Symbiosis replied to Kelsenellenelvian's topic in Windows Post-Install Wizard (WPI)
@Gavv You could add the following to the generate.js file: function FindDesktop() { position = "generate.js" swpath = WshShell.regRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"); return desktop; } Then you also add to the generate.js Desktop = Finddesktop(); rs = rs.replace(/%desktop%/gi, desktop); Then you can use %desktop% in the config.js file as path to your desktop In a .cmd file you can use the reg read command to get the entry -
Change requests - new ideas - wishlist
Doc Symbiosis replied to hasi001's topic in Windows Post-Install Wizard (WPI)
I would like to have a possibility, to have a checkbox in front of every group, so that you can check/unckeck a whole softwaregroup. -
cannot run commands
Doc Symbiosis replied to Doc Symbiosis's topic in Windows Post-Install Wizard (WPI)
the command pause was thought as just an example, it's the same thing with evry other command. -
When I try to run a internal command like "pause", WPI gives the error message "Windows cannot find 'pause. Make sure you typed the name correctly and then try again. To search for a file..." in my config.js I have the line: cmd1[pn]=['pause'] I also tried cmd1[pn]=['%COMSPEC% /C pause'] but it also didn't work. Does anyone have an idea, what's wrong?