Content Type
Profiles
Forums
Events
Everything posted by MHz
-
Any accounts created, will inherit the changes made to the registry at T12 as default. The registry entries that you posted may need to be applied at a time such as RunOnce as they are visual tweaks.
-
Bad idea. The Default User Profile is loaded during Windows Setup in place of a usual User Profile. Doing what you suggest is an absurd thing to do. Just apply the registry entries as is at T12. Some entries may not be accepted, such as Visual settings, which may need to be applied when a User Profile is logged on.
-
For registration, I just add this to my AutoIt script and it does well. I am not suppling the values,so you need to dig them out of the registry for yourself when registered first. ; Register $key = 'HKCU\Software\Alcohol Soft\Alcohol 120%' RegWrite($key & '\Info', 'UserName', 'Reg_sz', 'NEED_VALUE') RegWrite($key & '\Info', 'ServerKey', 'Reg_sz', 'NEED_VALUE') $key = 'HKCU\Software\StarSynergy\2\act' RegWrite($key, 'server', 'Reg_sz', 'NEED_VALUE') RegWrite($key, 'email', 'Reg_sz', 'NEED_VALUE') RegWrite($key, 'value', 'Reg_sz', 'NEED_VALUE')
-
How can i tell autoit to del shortcuts from desktop?
MHz replied to InViSibLe Gr's topic in Application Installs
The switches for Shutdown.exe have nothing to do with WPI as shown above. Type Shutdown /? at a cmd prompt to see for yourself. You may also want to checkout my CMenu program. It has some nice abilities built in for making AutoIt install scripts quickly. Also can identify installers for known switches... -
Tell msiexec where your file is. Supply a path to the file. If you use Start /Wait in a DOS batch file, then you deserve to be thrown into a snake pit for constructing a noobie command.
-
@rikgale Glad you like CMenu too. @Weed Sad that x64 doesn't support CMenu and I am not sure as to why exactly. I guess CMenu is available for only 32bit OSes I have uploaded CMenu v2.4 which fixes some minor bugs. See the 1st post for details.
-
I edited my last post with the uninstall icon to remain in the startmenu with the attached script. Also a tip for not using the Starwind driver.
-
This is what I have to offer. I have not faced a reboot prompt yet to script it, but that is just tested in a VM so far. Components checked can change with each install, as the installer looks at the registry for previously added flags. I have added into my script to insert these registry entries in 1st to control the selection of components in a controled manner. I have not done any registration as the program wants to call home to accomplish the task, so seems messy to script for everyone atm. Edit: Commented line in script so uninstall icon is not removed from the startmenu. FileDelete('Uninstall Alcohol 120%.lnk') An option is to not use the Starwind service if SPTD is used the is supplied with Daemon's tools. Just set the line near the top of the script to 0, as shown below. $starwind = 0; iSCSI Service Edit: Added scripts to Pinned AutoIt thread for ease. AutoIt thread post Install Script Get Registration Script (as mentioned post #26)
-
Hey johny, Welcome. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Looks like a syntax problem. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ This works: explorer %systemdrive%\windows This does not: explorer %systemdrive%\\windows Use just one backslash as a path separator.
-
I tried your AutoIt script once and it worked. Perhaps a window did not get focus or something for the stall to happen. I made up script that may work more reliably as active windows are not needed. This was tested with the latest 3.5 version of NewsLeecher. It seems like you may have full titles as default but this script should cater for either setting. It will promptly close the shortcut group window that opens also. You will not need BlockInput() with this script. Opt("WinTitleMatchMode", 2) $pid = Run(@ScriptDir & "\nl_setup.exe") WinWait("Installing NewsLeecher", "Welcome to the NewsLeecher Installation!") ControlClick("Installing NewsLeecher", "Welcome to the NewsLeecher Installation!", "Button1") WinWait("Installing NewsLeecher", "License Agreement") ControlCommand("Installing NewsLeecher", "License Agreement", "Button3", "Check") ControlClick("Installing NewsLeecher", "License Agreement", "Button4") WinWait("Installing NewsLeecher", "Select a destination directory") ControlClick("Installing NewsLeecher", "Select a destination directory", "Button8") WinWait("Installing NewsLeecher", "Select suitable options") ControlCommand("Installing NewsLeecher", "Select suitable options", "Button12", "Check") ControlClick("Installing NewsLeecher", "Select suitable options", "Button15") WinWaitClose("Installing NewsLeecher", "Select suitable options", 5) ProcessWaitClose($pid) WinWait("NewsLeecher", "", 5) While WinExists("NewsLeecher") WinClose("NewsLeecher") Sleep(500) WEnd
-
the guide of "Using autoit for silent install"
MHz replied to master_mtz's topic in Application Installs
My guess is the last line should be replaced with Send("!f") That is how I would send Alt-f to the last button. You could add a small Sleep() just before it, if the button is disabled for a short period of time. -
the guide of "Using autoit for silent install"
MHz replied to master_mtz's topic in Application Installs
Here is a easier method for CCleaner v1.27 $handle = FileOpen(@ProgramFilesDir & '\Yahoo!', 2) RunWait(@ScriptDir & '\ccsetup127.exe /S') FileClose($handle) FileDelete(@ProgramFilesDir & '\Yahoo!') Func OnAutoItStart() ; A 2nd script instance will exit. Local $interpreter $interpreter = StringTrimRight(@ScriptName, 4) & ' Script Interpreter' If WinExists($interpreter) Then Exit AutoItWinSetTitle($interpreter) EndFunc The Yahoo installation fails as for 1 empty file created and then removed after the CCleaner install. The OnAutoItStart() function is the first section of code and will stop a AutoIt script from executing itself. Edit: And perhaps something even more easier, a link that was posted by vcBlackBox. -
Nullsoft Installer. You can use /S but a language window pops up. Shortcuts group directory also does not get made with silent install so the shortcuts are made in the root of the startmenu\programs folder. Silent Script: _slowview_silent.html As for the shortcut problem with using /S, I also made an Automated version. It will move the 1st installer window of screen. Just comment the WinMove() line with a ; if you want to see the installation. Automated script: _slowview_auto.html Save your script as an au3 file. It can be compiled with a right click when AutoIt is installed.
-
Short and sweet. A DOS batch file knows where it is, so use path addressing from it. Set PP=%~d0 %PP% is where your DOS batch file is (including a backslash) Use sub-folders from your RunOnceEx.cmd for ease.
-
Since a DOS batch file knows where it executes, then try this: cmdow @ /HID @Echo Off SET PP=%~d0Apps\ SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Installing Programs" /f REG ADD %KEY%\000 /VE /D ".net2" /f REG ADD %KEY%\000 /V 1 /D "%PP%dotnet2.exe" /f REG ADD %KEY%\001 /VE /D ".netsp1" /f REG ADD %KEY%\001 /V 1 /D "%PP%dotnet11sp1.exe" /f REG ADD %KEY%\002 /VE /D "java" /f REG ADD %KEY%\002 /V 1 /D "%PP%jre506.exe" /f REG ADD %KEY%\003 /VE /D "Kaspersky Antivirus" /f REG ADD %KEY%\003 /V 1 /D "%PP%kavscript.exe" /f REG ADD %KEY%\004 /VE /D "MSAntispyware" /f REG ADD %KEY%\004 /V 1 /D "%PP%MSAntispyware.exe" /f REG ADD %KEY%\005 /VE /D "MSN_Messenger_7.5.0322" /f REG ADD %KEY%\005 /V 1 /D "%PP%MSN_Messenger_7.5.0322.exe" /f REG ADD %KEY%\006 /VE /D "MsgPlus-362.exe" /f REG ADD %KEY%\006 /V 1 /D "%PP%MsgPlus-362.exe /SilentInstallNoSponsor" /f REG ADD %KEY%\007 /VE /D "reader705.exe" /f REG ADD %KEY%\007 /V 1 /D "%PP%reader705.exe" /f REG ADD %KEY%\008 /VE /D "Office 2003" /f REG ADD %KEY%\008 /V 1 /D "%PP%Office2003\PRO11.msi /QB" /f REG ADD %KEY%\009 /VE /D "Photoshop CS2" /f REG ADD %KEY%\009 /V 1 /D "%PP%PhotoshopCS2\PhotoshopCS2Script.exe" /f REG ADD %KEY%\010 /VE /D "Spybot.exe" /f REG ADD %KEY%\010 /V 1 /D "%PP%Spybot.exe" /f REG ADD %KEY%\011 /VE /D "UltraEdit" /f REG ADD %KEY%\011 /V 1 /D "%PPsetup.exe /s" /f REG ADD %KEY%\012 /VE /D "WinRAR" /f REG ADD %KEY%\012 /V 1 /D "%PP%winrarscript.exe" /f EXIT Sorry, codebox rips empty lines.
-
Office 2003 Switchless Installer (7zip) tutorial
MHz replied to a topic in Unattended Windows 2000/XP/2003
Well, you are not clear of stating your problem, so what is your problem of understanding the guide? If just making the archive, then take the following advice. Advice: Do a search in the Applications Forum for Keytotimes thread on making a 7Zip switchless installer. -
Add double quotes around the path.
-
(REQUEST):Some shell extensions programs - unattended
MHz replied to ggg's topic in Application Installs
I would add them in this folder, if they do not their own folder. $OEM$\system32\ShellExt And just convert the registry file to cmd file syntax of Reg Add so %SystemRoot% can be used in the commands. To use registry files with Environmental Variables, then you would have to manually create a Reg_Expand_sz value in the Registry and then export it which will become a hex binary value in the exported file. -
{REQUEST] Winamp 5.1x Silent Installer for WPI
MHz replied to owikh84's topic in Application Installs
AutoIt script without the WinAmp Agent RunWait(@ScriptDir & '\winamp513_full.exe /S') ProcessWait('winamp.exe', 5) If ProcessExists('winamp.exe') Then ProcessClose('winamp.exe') If ProcessExists('winampa.exe') Then ProcessClose('winampa.exe') IniWrite(@ProgramFilesDir & '\winamp\winamp.ini', 'WinampReg', 'NeedReg', '0') RegDelete('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'WinampAgent') -
{REQUEST] Winamp 5.1x Silent Installer for WPI
MHz replied to owikh84's topic in Application Installs
Ofcouse, it has been covered in other WinAmp threads. Here is a simple AutoIt script that does what you want. Silent and WinAmp will not nag afterwards, as the ini is written to to stop tha nag window. RunWait(@ScriptDir & '\winamp513_full.exe /S') ProcessWait('winamp.exe', 5) If ProcessExists('winamp.exe') Then ProcessClose('winamp.exe') If ProcessExists('winampa.exe') Then ProcessClose('winampa.exe') IniWrite(@ProgramFilesDir & '\winamp\winamp.ini', 'winampreg', 'NeedReg', '0') Just save as "_WinAmp.au3" and compile with a rightclick. Then add the compiled "_WinAmp.exe" to the same folder as "winamp513_full.exe" and run it from WPI without switches. -
Problem with installing Programs
MHz replied to Drew_Karee's topic in Unattended Windows 2000/XP/2003
That is how I read it with your folder selection. You were installing from CD, You may not have had OemPreInstall = 1 set in Winnt.sif, to make the special $ prefixed folders copied over at textmode setup, since you did not find the Install folder on the %SystemDrive% when Windows Setup finished. $OEM$\$1 is special folder for textmode setup to copy to %SystemDrive% Root. Personal preference as to where you want to have your Install folder. I mention within the $OEM$ folder level for ease, as your RunOnceEx.cmd executes at that level, so if you use %~dp0 in your RunOnceEx.cmd, then %~dp0 expands (with trailing backslash) to the path of the RunOnceEx.cmd. If you have your Install folder at 1 folder level down, then it is easy to co-ordinate your commands. Let assume that your CDRom letter is H: and your various Applications are in a folder named Install. %PP% would expand to H:\$OEM$\Install\ for the below RunOnceEx.cmd cmdow @ /HID @Echo Off SET PP=%~dp0Install\ SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Installing Programs" /f REG ADD %KEY%\000 /VE /D "Microsoft Office 2003 Professional" /f REG ADD %KEY%\000 /V 1 /D "%PP%OfficeXP\setup.exe TRANSFORMS=Unattended.MST /qb-" /f EXIT Shown above without the Application folder that you had, as I fail to see the use of it, unless you are planning some catagory folder layout for your Installers. Try to keep it simple and you should only get simple problems, if any. 2 different methods are mentioned in that guide page that needs to be defined on which you want. CDRom install or HDD Install. Relevent Concepts: - Upon using CD Installs, then avoid using the $OEM$\$1 folder as that is for copying to the %SystemDrive%. Instead, you can use any custom folder outside of the special folders within $OEM$ and the I386 folder. But make a reasonable path to the folder for easy use of your RunOnceEx.cmd. - Set OemPreInstall = 1 in Winnt.sif to enable the contents of the special folders of $OEM$ to be copied to the HDD if desired. - $OEM$ folder is needed to execute commands at T-12 with Cmdlines.txt. -
so I now use following command in my runonceex: REG ADD %KEY%\zz39 /VE /D "Java Runtime" /f REG ADD %KEY%\zz39 /V 1 /D "%systemdrive%\install\j2re-1_4_2_10-windows-i586-p.exe /1031 /s /v "/qn IEXPLORER=1 MOZILLA=1 REBOOT=ReallySuppress WEBSTARTICON=0" /f Somehow this doesn´t work, can somebody have a look what i´m doing wrong? Note the "WEBSTARTICON=0". I saw a lot of "cleanup.cmd´s" doing that manually... Your Lang switch is does not look correct. I do not use switches to suppress reboot or desktop icon as it is not required as no reboot or desktop icon creation happens.
-
Yes. Look here for simple instructions. As BoardBabe has mentioned, an Au3 script is a plain text file, not Html. The Html is just for easy viewing.
-
Problem with installing Programs
MHz replied to Drew_Karee's topic in Unattended Windows 2000/XP/2003
Currently, you copy office to the HDD by using $OEM$\$1\Install during textmode setup, but install it from CD with RunOnceEx. Not a good plan. More... You are using $OEM$ to copy your installers to the %systemdrive%\Install folder, but your %PP% variable is the path of the CDRom. If you are going to use $OEM$ to copy over your installers at textmode, then you will need to set %PP% to %systemdrive%. Else you can remove your installers from the special $1 folder and make your own folder for example $OEM$\Software where you installers will remain and install from the CD itself by using %PP% set to the CDRom path. I install mine from the CDRom and some others do too. Good luck with it.