Jump to content

digitalfrost

Member
  • Posts

    69
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

Posts posted by digitalfrost

  1. You should try NSIS, it is very easy and once you have a basic layout making new installers is a breeze.

    I offer some NSIS Scripts on my homepage (see signature). I don't like INNO Setup because by default the installdir can only be set absolute and not relative (see here for a workaround).

  2. I can't help you with your AutoIt Script, but I wrote a .inf file that installs **** NFO Viewer. Create a WinRAR SFX wich extracts the whole "**** NFO Viewer" folder to %ProgramFiles%, name it ****.exe

    Then, run this .inf file using "rundll32 setupapi,InstallHinfSection DefaultInstall 128 \blablabla\****.inf"

    [Version]
    Signature=$Windows NT$

    [DefaultInstall]
    AddReg=ExtractDAMN
    AddReg=FileAssoc
    AddReg=Settings
    AddReg=HKLM

    [ExtractDAMN]
    HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","****",,"%01%\****.exe"

    [FileAssoc]
    HKCR,".diz",,,"****.NFO.Viewer.File"
    HKCR,".nfo",,,"****.NFO.Viewer.File"
    HKCR,"****.NFO.Viewer.File",,,"**** NFO Viewer file"
    HKCR,"****.NFO.Viewer.File\DefaultIcon",,,"%16422%\**** NFO Viewer\**** NFO Viewer.exe,1"
    HKCR,"****.NFO.Viewer.File\shell",,,"open"
    HKCR,"****.NFO.Viewer.File\shell\open",,,"Open in &**** NFO Viewer"
    HKCR,"****.NFO.Viewer.File\shell\open\command",,,"""%16422%\**** NFO Viewer\**** NFO Viewer.exe"" ""%1"""
    HKCR,"Applications\**** NFO Viewer.exe\shell",,,"open"
    HKCR,"Applications\**** NFO Viewer.exe\shell","FriendlyCache",,"**** NFO Viewer"
    HKCR,"Applications\**** NFO Viewer.exe\shell\open",,,"Open in &**** NFO Viewer"
    HKCR,"Applications\**** NFO Viewer.exe\shell\open\command",,,"""%16422%\**** NFO Viewer\**** NFO Viewer.exe"" ""%1"""

    [Settings]
    HKCU,"Software\****\**** NFO Viewer","CheckDefaultViewer",0x00010001,00,00,00,00
    HKCU,"Software\****\**** NFO Viewer","ReuseWindow",0x00010001,01,00,00,00
    HKCU,"Software\****\**** NFO Viewer","AlwaysOnTop",0x00010001,00,00,00,00
    HKCU,"Software\****\**** NFO Viewer\NFO","FontName",,"[built-in] Lucida Concole"
    HKCU,"Software\****\**** NFO Viewer\NFO","FontData",1,98,00,00,01
    HKCU,"Software\****\**** NFO Viewer\NFO","Window",0x00010001,23,00,00,00
    HKCU,"Software\****\**** NFO Viewer\NFO","BackgroundColor",1,48,3d,8b,00
    HKCU,"Software\****\**** NFO Viewer\NFO","TextColor",1,c0,c0,c0,00
    HKCU,"Software\****\**** NFO Viewer\NFO","HyperLinkColor",1,f5,f5,f5,00
    HKCU,"Software\****\**** NFO Viewer\NFO","HyperLinkHoverColor",1,dc,dc,dc,00
    HKCU,"Software\****\**** NFO Viewer\NFO","Text",0x00010001,00,04,00,00

    [HKLM]
    HKLM,"SOFTWARE\****\**** NFO Viewer",,,"%16422%\**** NFO Viewer"

  3. Have you set 2003s file caching behaviour to XP-style? Size=1 uses 10Mbyte less memory compared to Size=2 in my install. I have no idea what's the default setting, but for Win2k3 I suspect it to be at least 2 if not 3...

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]

    "Size"=dword:00000001

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]

    "LargeSystemCache"=dword:00000000

  4. Because of this I thought that I could now simply delete every file in system32 (and just replace the ones deleted of course) so I highlited them all and hit the delete, but there were alot of files that weren't even on the required list that were denied for deletion so I couldn't touch them at all. :(
    You can't delete them because they have open handles. You could try unlocker to unlock them, but I doubt you could delete them all.
    Also digifrost, just a couple of questions:

    1. What is CAD_Trap that comes with the package and is it at all nessecary for what is intended with this thread?

    2. Will just whacking the OEM folder in my XP cd (Like I would a normal unattended cd) also do all of the minilogon stuff for me. Maybe I overlooked the files and what they do but I didn't quite catch if the minilogon reg is also applied.

    Thanks :)

    CAD_Trap is for Ctrl-Alt-Del functionality in conjunction with Minlogon, without CAD_Trap Ctrl-Alt-Del doesn't work. Minlogon is installed by the inf-file that is run by cmdlines.txt, so in short, yes.
    Is this right?!  :blink: #

    I'm positive I pulled this whole thing off right lol, and apart from losing 16/32 bit colour as well as being unable to change my screen properties, I haven't actually gained a huge amount of free space from this.

    The screenshot shows VMWare with the fresh installation of XP Pro SP2 after its rebooted (and gone through the deletion and minilogon) and I've still got well over a GB used up, that said, I think XP installs to around 1.8GB.

    I don't wanna sound as if I'm p***ed or anything so I'll apologise if I'm giving that impression, but its just that I thought this was going for a minimalist kinda thing.

    Loosing 16/32Bit is normal, also this windows isn't really usable because a lot of stuff is missing. About that GB: Try disabling SFC with nLite and look if you still have the \LastGood folder in %WinDir%. I had my Windows Folder down to about 130mbyte.
  5. Here's my way: http://digitalfrost.planetzord.de/minxp.rar

    It contains Minlogon & CAD_Trap, open cmdlines.txt and remove the appropriate lines if you don't like it. It is ready for use with any XP CD, and should also work with a installed xp (just copy the files in $$ to %WinDir% and run DelFiles.bat).

    Aegis: You might wanna take a look at LiteShell, as the name implies it is very lite. Also there's a ext2 file system driver for XP (ext2fsd), but I don't think it is stable enough for serious use, besides the fact that you can only install xp to ntfs/fat32 with the textsetup.

  6. "WINDOWS or LINUX, Which is the most user friendly OS...?"

    "Which operating system is the BEST...?"

    These are two questions that don't need the have the same answer. User friendlyness: Windows, the best: depends on intended use, for desktop I'd say BeOS, since this choice is not available I vote for Linux.

  7. Here's an .inf that will copy the required files to %WinDir%\Required.Files. I think it's easier than doing all the copying by hand.

    [Version]
    Signature=$Windows NT$

    [DefaultInstall]
    CopyFiles=Required.Files

    [Required.Files]
    ;List files from the startpost here


    [DestinationDirs]
    Required.Files=10,Required.Files

  8. Here is my plugins.reg:

    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\SOFTWARE\Google\Google Desktop]
    "instanceid"="52b7299ca77943ab49b88a8066fcfb5d"

    [HKEY_CURRENT_USER\SOFTWARE\Google\Google Desktop\Components]
    "last_update"=hex(b):01,00,00,00,00,00,00,00

    [HKEY_CURRENT_USER\SOFTWARE\Google\Google Desktop\Components\{EAE377CA-10EC-4933-A56F-E1824D0DEAC9}]
    "title"="Larry's OpenOffice and StarOffice Indexer 1.01"
    "description"="Indexes all OpenOffice.org/StarOffice6+ files"
    "icon"=""
    "state"=dword:00000001
    "status"=hex(b):d6,d8,03,f4,d2,9c,dd,82
    "extension"=hex:13,00,00,00,06,00,00,00,73,00,78,00,63,00,06,00,00,00,73,00,74,\
     00,63,00,06,00,00,00,73,00,78,00,64,00,06,00,00,00,73,00,74,00,64,00,06,00,\
     00,00,73,00,78,00,69,00,06,00,00,00,73,00,74,00,69,00,06,00,00,00,73,00,78,\
     00,77,00,06,00,00,00,73,00,78,00,67,00,06,00,00,00,73,00,74,00,77,00,06,00,\
     00,00,73,00,74,00,6d,00,06,00,00,00,6f,00,64,00,74,00,06,00,00,00,6f,00,74,\
     00,74,00,06,00,00,00,6f,00,64,00,67,00,06,00,00,00,6f,00,74,00,67,00,06,00,\
     00,00,6f,00,64,00,70,00,06,00,00,00,6f,00,74,00,70,00,06,00,00,00,6f,00,64,\
     00,73,00,06,00,00,00,6f,00,74,00,73,00,06,00,00,00,6f,00,64,00,66,00

    [HKEY_CURRENT_USER\SOFTWARE\Google\Google Desktop\Components\{7DE2B635-4F72-4282-A466-11401ED7B0A4}]
    "title"="Mp3tag Audio Indexer 1.00 by Florian Heidenreich"
    "description"="Indexes aac, ape, apl, flac, mp+, mp1, mp2, mp3, mp4, m4a, m4b, mpc, ogg, ofr, ofs, spx, tta and wv files"
    "icon"=""
    "state"=dword:00000001
    "status"=hex(b):33,5c,b0,15,3f,b7,0b,76
    "extension"=hex:14,00,00,00,06,00,00,00,61,00,61,00,63,00,06,00,00,00,61,00,70,\
     00,65,00,06,00,00,00,61,00,70,00,6c,00,08,00,00,00,66,00,6c,00,61,00,63,00,\
     06,00,00,00,6d,00,70,00,2b,00,06,00,00,00,6d,00,70,00,31,00,06,00,00,00,6d,\
     00,70,00,32,00,06,00,00,00,6d,00,70,00,33,00,06,00,00,00,6d,00,70,00,34,00,\
     06,00,00,00,6d,00,34,00,61,00,06,00,00,00,6d,00,34,00,62,00,06,00,00,00,6d,\
     00,70,00,63,00,06,00,00,00,6f,00,67,00,67,00,06,00,00,00,6f,00,66,00,72,00,\
     06,00,00,00,6f,00,66,00,73,00,06,00,00,00,73,00,70,00,78,00,06,00,00,00,74,\
     00,74,00,61,00,04,00,00,00,77,00,76,00,f0,00,00,00,89,85,94,ed,ff,ff,83,4d,\
     fc,ff,eb,26,8b,45,ec,8b,00,8b,00,89,85,68,ed,ff,ff,33,c0,40,c3,8b,65,e8,8b,\
     85,68,ed,ff,ff,83,4d,fc,ff,33,f6,8b,9d,a0,ed,ff,ff,3b,c6,7d,2b,50,68,74,11,\
     00,01,8d,85,c4,f1,ff,ff,50,ff,15,80,10,00,01,83,c4,0c,56,56,8d,85,c4,f1,ff,\
     ff,50,53,ff,b5,ac,ed,ff,ff,e9,0d,01,00,00,39,b5,a8,ed,ff,ff,0f,85,23,01,00,\
     00,39,b5,a4,ed,ff,ff,0f,84,0b,01,00,00,68,20,11,00,01,ff,b5,b0,ed,ff,ff,ff,\
     15,50,10,00,01,3b,c6,75,6a,8d,85,c4,ef,ff,ff,50,56,56,56,53,ff,15,c8,10,00,\
     01,83,c4,14,68,90,11,00,01,8d,85,c4,ef,ff,ff,50,8b,3d,54,10,00,01,ff,d7,85,\
     c0,74,1f,68,84,11,00,01,8d,85,c4,ef,ff,ff,50,ff,d7,85,c0,74,0d,56,56,56,68,\
     2c,11,00,01,e9,e0,fe,ff,ff,56,56,56,68,2c,11,00,01,53,6a,09,e8,d5,f3,ff,ff,\
     c7,85,b4,ed,ff,ff,04,00,00,00,00

    What is important is: The value of status seems to be connected to the instanceid, so these two values must always be from the same installation. last_update must be greater than 1 for Desktop Search to recognize the new plugins. The plugins are installed by registering their .dlls (regsvre32 <dll>, see the .inf below), we omit the popup message during registration by inserting the plugin settings into HKCU\Google... _before_ registering the plugin.

    I use the .reg file in conjunction with this inf file:

    [Version]
    Signature=$Windows NT$

    [DefaultInstall]
    AddReg=InstallGDS
    AddReg=Plugins_reg
    CopyFiles=Plugins

    [Stage2]
    DelReg=FirstUse
    AddReg=GDS_settings

    [InstallGDS]
    HKLM,"%RunOnce%","GDS_setup1",,"%01%\GoogleDesktopSearchSetup.exe /silent"
    ;HKLM,"%RunOnce%","GDS_setup2",,"pskill GoogleDesktop.exe"
    HKLM,"%RunOnce%","GDS_setup3",,"%10%\system32\rundll32.exe setupapi,InstallHinfSection Stage2 128 %01%\%InfFile%"

    [FirstUse]
    ;remove the first use page
    HKCU,"SOFTWARE\Google\Google Desktop","first_use"

    [GDS_settings]
    ;search in taskbar
    HKCU,"SOFTWARE\Google\Google Desktop","display_mode",0x00010001,08,00,00,00
    ;we don't want it to check .exe files, why should it?
    HKCU,"SOFTWARE\Google\Google Desktop","file_extensions_to_skip",,",tmp,temp,log,pst,ost,oab,nk2,dat,000,pf,xml,obj,pdb,exe"
    HKCU,"SOFTWARE\Google\Google Desktop","file_extensions_to_skip_initial_crawl",,",tmp,temp,pst,ost,oab,nk2,exe"
    ;i didn't buy that mouse with scrolling wheel just for looks...
    HKCU,"SOFTWARE\Google\Google Desktop\Preferences","num_results",0x00010001,64,00,00,00


    [Plugins_reg]
    ;import plugin settings, along with instanceid and last_update setting > 0
    HKLM,"%RunOnce%","GDS_setuplarry",,"regedit /s ""%01%\plugins.reg"""

    [Instplug]
    ;register the plugin dlls
    HKLM,"%RunOnce%","GDS_setup4",,"regsvr32 /s ""%16422%\%AppPath%\Plugins\LarrysOpenOfficeandStarOfficeIndexer.dll"""
    HKLM,"%RunOnce%","GDS_setup5",,"regsvr32 /s ""%16422%\%AppPath%\Plugins\GoogleSearchForExplorer.dll"""
    HKLM,"%RunOnce%","GDS_setup6",,"regsvr32 /s ""%16422%\%AppPath%\Plugins\Mp3tagGoogleDesktop.dll"""

    [Plugins]
    LarrysOpenOfficeandStarOfficeIndexer.dll,,,0x00000002
    GoogleSearchForExplorer.dll,,,0x00000002
    Mp3tagGoogleDesktop.dll,,,0x00000002

    [Strings]
    RunOnce = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
    RunOnceEx = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx"
    AppPath="Google\Google Desktop Search"
    InfFile="google.inf"
    DispName="Google Desktop Search"
    UninstallDispName="teaetat"
    UnInstallPath="Software\Microsoft\Windows\CurrentVersion\Uninstall\test12351"


    [DestinationDirs]
    Plugins=16422,%AppPath%\Plugins
    inf=17

    I would do it all with just the inf file, I just can figure out how to write QWORD values to the registry using .infs. Hope this helps.

  9. :: copy all the applications to the right target locations
    cls
    echo.
    echo  Copying Program files to target locations...
    xcopy "program files\ahead" "%programfiles%\ahead\" /E /Q /Y >NUL 2>&1
    xcopy "program files\common files" "%commonprogramfiles%\" /E /Q /Y >NUL 2>&1
    xcopy "windows" "%windir%\" /E /Q /Y >NUL 2>&1

    I suggest to change this section like above, for people like me, whose 'common files' folder is not named 'common files'.

  10. Here's my way.

    [Version]
    Signature=$Windows NT$

    [DefaultInstall]
    AddReg=InstallTU

    [Stage2]
    DelReg=Removes***
    AddReg=TUSettings
    DelFiles=Shortcuts
    DelFiles=1Klick

    [InstallTU]
    HKLM,"%RunOnce%","tusetup1",,"%01%\tusetup.msi /qn ALLUSERS=1"
    HKLM,"%RunOnce%","tusetup2",,"%10%\system32\rundll32 setupapi,InstallHinfSection Stage2 128 %01%\tusetup.inf"

    [TUSettings]
    HKCU,"SOFTWARE\TuneUp\Utilities\4.0","Company",,""
    HKCU,"SOFTWARE\TuneUp\Utilities\4.0","UserName",,""
    HKCU,"SOFTWARE\TuneUp\Utilities\4.0","RegCode",,""

    HCU,".DEFAULT\SOFTWARE\TuneUp\Utilities\4.0","Company",,""
    HCU,".DEFAULT\SOFTWARE\TuneUp\Utilities\4.0","UserName",,""
    HCU,".DEFAULT\SOFTWARE\TuneUp\Utilities\4.0","RegCode",,""

    [Removes***]
    HKCR,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\TuneUp Utilities"
    HKCR,"CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\TuneUp Undelete"
    HKCR,"*\shellex\ContextMenuHandlers\TuneUp Shredder"
    HKCR,"Directory\shellex\ContextMenuHandlers\TuneUp Shredder"
    HKCU,"Software\Microsoft\Windows\CurrentVersion\Run","TuneUp MemOptimizer"

    [Shortcuts]
    TuneUp Utilities 2004.lnk
    1-Klick-Wartung.lnk

    [1Klick]
    1-Klick-Wartung.job

    [DestinationDirs]
    Shortcuts=16409
    1Klick=10,Tasks

    [Strings]
    RunOnce = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
    RunOnceEx = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx"

×
×
  • Create New...