Jump to content

vampus8

Member
  • Posts

    27
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Posts posted by vampus8

  1. Found the problem; that wasn't it.

    There was a typo in the filename in the XP Codec Pack condition line.

    cond[pn]=['FileExists(\'%ROOT%\\Software\\XP Codec Pack 2.4.3\\XP_Codec_Pack.exe\')'];

    Should have been:

    cond[pn]=['FileExists(\'%ROOT%\\Software\\XP Codec Pack 2.4.3\\XP_CodecPack.exe\')'];

    The exclusion line that Kels pointed out was correct, k-lite full, k-lite standard, and xp codec pack were supposed to each have been excluding the other two. I think the problem arose when the exclusions script got to XP Codec Pack and it's appear condition wasn't met. That would explain why I got messages for both k-lite std and full (XP Codec Pack excluded both), why removing the XP Codec Pack entry entirely fixed the problem, and why fixing the typo in the above condition line also fixed the problem. Is this some minor bug in the exclusions process?

    As always, thanks to Kels and mritter for the innumerable hours of hard work.

    Kevin

  2. Hi everyone,

    I've recently upgraded to WPI 7.2.2 and I'm getting this error message when I start up:

    "Could not find UID: KLITES

    It either does not exist or has been excluded by some other entry already and is not 'visible' to other entries."

    There's a second error message for KLITEF. Does anyone know offhand how to fix this? The pertinent sections of the config.js are below:

    prog[pn]=['K-Lite Full Codec Pack 4.42'];
    uid[pn]=['KLITEF'];
    desc[pn]=['The K-Lite Codec Pack is a collection of codecs and related tools. Codec is short for Compressor-Decompressor. Codecs are needed for encoding and decoding (playing) audio and video. The K-Lite Codec Pack is designed as a user-friendly solution for playing all your movie files. With the K-Lite Codec Pack you should be able to play all the popular movie formats and even some rare formats.<br><br>Full supports even more audio and video formats. It also has encoding support for various formats. This package is for power users and people who do video editing/encoding.'];
    ordr[pn]=[1060];
    dflt[pn]=['no'];
    forc[pn]=['no'];
    bit64[pn]=['no'];
    cat[pn]=['Multimedia'];
    configs[pn]=['Personal'];
    cmds[pn]=['"%ROOT%\\Software\\KLite\\klcodec442f.exe" /verysilent /norestart /LoadInf=".\\klcpf.ini"','cmd /c move /Y "%ALLUSERSPROFILE%\\start menu\\programs\\K-Lite Codec Pack\\Media Player Classic.lnk" "%ALLUSERSPROFILE%\\start menu\\programs\\"'];
    excl[pn]=['KLITES','XPCOD'];
    cond[pn]=['FileExists(\'%ROOT%\\Software\\KLite\\klcodec442f.exe\')'];
    pn++;

    prog[pn]=['K-Lite Standard Codec Pack 4.42'];
    uid[pn]=['KLITES'];
    desc[pn]=['The K-Lite Codec Pack is a collection of codecs and related tools. Codec is short for Compressor-Decompressor. Codecs are needed for encoding and decoding (playing) audio and video. The K-Lite Codec Pack is designed as a user-friendly solution for playing all your movie files. With the K-Lite Codec Pack you should be able to play all the popular movie formats and even some rare formats. <br><br>Standard contains everything you need to play all the most commonly used formats. This package should be enough for the average user.'];
    ordr[pn]=[1061];
    dflt[pn]=['no'];
    forc[pn]=['no'];
    bit64[pn]=['no'];
    cat[pn]=['Multimedia'];
    configs[pn]=['Laptop,Desktop'];
    cmds[pn]=['"%ROOT%\\Software\\KLite\\klcodec442s.exe" /verysilent /norestart /LoadInf=".\\klcps.ini"','cmd /c move /Y "%ALLUSERSPROFILE%\\start menu\\programs\\K-Lite Codec Pack\\Media Player Classic.lnk" "%ALLUSERSPROFILE%\\start menu\\programs\\"'];
    excl[pn]=['KLITEF','XPCOD'];
    cond[pn]=['FileExists(\'%ROOT%\\Software\\KLite\\klcodec442s.exe\')'];
    pn++;

    prog[pn]=['XP Codec Pack 2.4.3'];
    uid[pn]=['XPCOD'];
    desc[pn]=['The XP Codec Pack is a collection of codecs and related tools. Codec is short for Compressor-Decompressor. Codecs are needed for encoding and decoding (playing) audio and video. The XP Codec Pack is designed as a user-friendly solution for playing all your movie files. With the XP Codec Pack you should be able to play all the popular movie formats and even some rare formats. The XP Codec Pack has the added advantage of being entirely free and legal.'];
    ordr[pn]=[1063];
    dflt[pn]=['yes'];
    forc[pn]=['no'];
    bit64[pn]=['no'];
    cat[pn]=['Multimedia'];
    configs[pn]=['Laptop, Desktop'];
    cmds[pn]=['"%ROOT%\\Software\\XP Codec Pack 2.4.3\\XP_Codec_Pack_Installer.exe','cmd /c move /Y "%USERPROFILE%\\start menu\\programs\\XP Codec Pack 2.4.3" "%ALLUSERSPROFILE%\\start menu\\programs\\XP Codec Pack 2.4.3"'];
    excl[pn]=['KLITEF','KLITES'];
    cond[pn]=['FileExists(\'%ROOT%\\Software\\XP Codec Pack 2.4.3\\XP_Codec_Pack.exe\')'];
    pn++;

  3. Sorry if the current state of the rb_config.js discussion outdates this post. I haven't followed it closely since it first popped up but searched around last night and it seems like it still crops up sometimes, no one is really sure why, and it's assumed to have something to do with bad MSI construction. Again, if I'm missing anything please let me know.

    I ran into this bug twice in my most recent unattended disc build. I'm installing from a more-or-less standard unattended Windows DVD with XP SP3, RyanVM's post SP3 update pack, BTS's latest official driver packs (as of a few days ago) and WPI 7.0 (including the Excludes patch) which is started via RunWPI.exe before the desktop loads for the first time. This is the first version of this unattended disk that I've built that incorporated WindowsXP SP3. Office 2007 wasn't anywhere in the mix; I'm still using 2003.

    My first rb_config.js bug popped up during the installation of Adobe Acrobat 6.0 Standard. The cmd line was:

    cmd1[pn]=['"%ROOT%\\Software\\Acrobat 6.0 Standard\\Adobe Acrobat 6.0 Standard\\setup.exe" /wait /v/qb /noreboot'];

    so I removed the Acrobat 6 install files from my disc (after all, it's getting on in years).

    I added a new WPI entry for PDFCreator 0.95 to replace it. The cmd line was:

    cmd1[pn]=['"%ROOT%\\Software\\PDFCreator-0_9_5_setup.exe" /SILENT /SUPPRESSMSGBOXES /NORESTART /COMPONENTS=\"!toolbar\" /TASKS=\"!desktop_icon\" /SP-'];

    This gave me a very similar rb_config.js bug.

    In both cases, the install would stop in the middle, show a "Could not open reboot configuration file rb_config.js" message, then offer to debug. It'd inevitably drop me into line 577 of installer.js and line 135 of installer_reboot.js. Script wouldn't be able to continue, so I'd break, exit the debugger, kill mshta.exe with taskmanager and resume WPI after the desktop loaded without further problems.

    When I was still toying around with the Acrobat version of the bug, I tried to trigger it by removing and installing acrobat again from a version of WPI and the install files from the hard drive. No dice.

    Both programs were written by different groups and use different installers but still I was getting the same bug. This makes me wonder if it doesn't have something to do with a document writing library. After all, both of these programs are for writing PDFs and the other time people are reporting this is when installing Office 2007 which, I believe, comes with it's own PDF printer doesn't it?

    The only other similarity I see between my two programs is that they're both unattended instead of silent (/QB for Acrobat and /SILENT for PDFCreator) and they both have some kind of /NOREBOOT switch. I'm rebuilding the disk and trying again with the /VERYSILENT switch instead of /SILENT for PDFCreator. I'll let you know how it goes.

    In the mean time, I'd be interested to hear any other thoughts on the matter. I've attached my full config.js for reference and here's useroptions.js, installer.js and installer_reboot.js while I'm at it.

    // Edit: Fixed type on description.

    config.js

    installer.js

    installer_reboot.js

    useroptions.js

  4. This fixed a problem I was having too. On WPI boot I'd get this error:

    Line: 471
    Char: 5
    Error: Object Required
    Code: 0
    Url: file:///C:/DuD30b3/WPI/WPI.hta

    (Same error when loading from disc instead of hard drive just with disc's wpi.hta in URL.)

    Same bug would get triggered when I checked or unchecked certain install options. Specifically, it'd pop up when the program I checked had an excl condition excluding another install option that wasn't showing up on the list for whatever reason (e.g. because I'd deleted the files already but left the option in my config.js for safekeeping or because there was a typo in the cond statement).

    Anyway, installing the new file from this thread fixed the problem.

    Well done and thanks for the ongoing effort.

    Cheers,

    Kevin

  5. Here's my current autorun.inf. There are some decent tutorials out there if you google around some. In short, the top 5 lines set up the default action when you insert your CD/DVD, and the other "shell" commands each match a title to a command that's available when you right click on the disc's icon in my computer. Also note that all file locations are relative to the root of the disc.

    You can test the autorun.inf file by compiling it along with any directories and files linked to in the file into an ISO. Then mount the ISO with something like MagicISO and and right click on the virtual drive in My Computer.

    [AutoRun]
    ShellExecute=WPI\WPI.HTA
    icon=wpi.ico
    label=Unattended Windows Installation Disk 3.0
    action=Install Applications


    shell\drivers=&Update Computer's Drivers
    shell\drivers\command = OEM\DP_Install_Tool.cmd

    shell\extras = &Extras
    shell\extras\command = explorer "Software\EXTRAS -- Unavailable in WPI\"

    shell\duddocs = &Documentation
    shell\duddocs\command = explorer documentation

    shell\setupwin = &Setup Windows
    shell\setupwin\command = SETUP.EXE

    shell\partition = &Partition Hard Drive
    shell\partition\command = explorer "Administrative Tools\Partition Magic 8 Portable\"


    ; prevents autoplay
    ; only works in Vista
    [Content]
    MusicFiles=false
    PictureFiles=false
    VideoFiles=false


    I'd love to see a discussion of other commands people add to their autorun.inf's, though this may not be the right forum.

    Cheers,

    Kevin

    // Edit: clarified instructions on how to test autorun.inf files.

  6. Follow these instructions to set up an unattended install of Notepad++ and replace Windows Notepad with Notepad++. Alternatively, you could just replace the files in your windows installation source but this method has the advantage that it can be run from WPI. Special thanks to Olivio over at the German nLite board and Sourceforge whose AutoIT code I modified to make the replacement tool. Here's his original post: http://sourceforge.net/forum/message.php?msg_id=4641563

    Basically, the replacement tool copies the notepad++ launcher into c:\windows\, c:\windows\system32\, c:\windows\system32\dllcache, (and a couple other directories if they exist on your computer) replacing notepad.exe in each of those directories. The trick is that it temporarily disables windows file protection on those files so that you don't get error boxes when you try to copy the files and so that Windows doesn't panic and revert them back to the original notepad.exe.

    The install process also creates a log file called Notepad_Replacement.log in your home drive (whatever drive your home directory is store in, c:\ for me) and a backup of your original notepad.exe file at C:\windows\Notepad-backup\notepad.exe.

    Note: If you run the replacement utility twice it will overwrite your backup notepad.exe with the replacement file.

    ------------
    Instructions
    ------------

    Setup:
    1) Download the Notepad++ installer from http://notepad-plus.sourceforge.net/uk/download.php .
    2) Download the Notepad++ Launcher from http://notepad-plus.sourceforge.net/uk/download.php .
    3) Download the replacement tool exe file from http://www.mediafire.com/?4mzdxey9n1j (or http://www.mediafire.com/?czmnbomsegg if you prefer the original .au3 file)
    4) Extract notepad.exe from the Launcher and put it in the same directory as the replacement tool.

    Install:
    5) Run the notepad++ installer with the switch /S
    6) Run the replacement tool.

    Voila! A perfectly unattended way to install Notepad++ and completely replace Windows Notepad.

  7. First off, I just want to give a huge thanks to Kels for this fabulous program. I've been using it for a year and a half now and it's yet to disappoint. Well done!

    I've been overhauling my unattended disk over the holidays and find myself spending a lot of time trudging through log files to nail down errors. As I do, two small tweaks seem like they'd be helpful.

    First, it'd be much easier to read the log files if the timestamp and result for each command line were on the same line in the text file. This is easy enough to change, just edit line 117 of installer_log.js.

    Old Version:

    Wednesday, January 02, 2008 1:08:43 AM
    Program: Ad-Aware 2007
    UID: ADAWARE
    Order: 003280
    Category: Free Applications
    Wednesday, January 02, 2008 1:09:01 AM
    cmd1 Success (returned code 0): ""C:\DuD 2.0 RC3\Software\Ad-Aware\aaw2007.exe" TRANSFORMS="C:\DuD 2.0 RC3\Software\Ad-Aware\NoLic.mst" /qb"
    Wednesday, January 02, 2008 1:09:02 AM
    cmd2 Success (returned code 1): "cmd /c copy "C:\Documents and Settings\Administrator\Start Menu\Programs\Lavasoft\Ad-Aware 2007\Ad-Aware 2007.lnk" "C:\Documents and Settings\All Users\start menu\programs\""
    Wednesday, January 02, 2008 1:09:02 AM
    cmd3 Success (returned code 0): "cmd /c del "C:\Documents and Settings\Administrator\Desktop\Ad-Watch 2007.lnk""
    Wednesday, January 02, 2008 1:09:02 AM
    cmd4 Success (returned code 0): "cmd /c rmdir /s /q "C:\Documents and Settings\Administrator\start menu\programs\Lavasoft\""
    Wednesday, January 02, 2008 1:09:02 AM
    Finished installation.

    New log files look like this:

    Wednesday, January 02, 2008 1:08:43 AM
    Program: Ad-Aware 2007
    UID: ADAWARE
    Order: 003280
    Category: Free Applications
    Wednesday, January 02, 2008 1:09:01 AM cmd1 Success (returned code 0): ""C:\DuD 2.0 RC3\Software\Ad-Aware\aaw2007.exe" TRANSFORMS="C:\DuD 2.0 RC3\Software\Ad-Aware\NoLic.mst" /qb"
    Wednesday, January 02, 2008 1:09:02 AM cmd2 Success (returned code 1): "cmd /c copy "C:\Documents and Settings\Administrator\Start Menu\Programs\Lavasoft\Ad-Aware 2007\Ad-Aware 2007.lnk" "C:\Documents and Settings\All Users\start menu\programs\""
    Wednesday, January 02, 2008 1:09:02 AM cmd3 Success (returned code 0): "cmd /c del "C:\Documents and Settings\Administrator\Desktop\Ad-Watch 2007.lnk""
    Wednesday, January 02, 2008 1:09:02 AM cmd4 Success (returned code 0): "cmd /c rmdir /s /q "C:\Documents and Settings\Administrator\start menu\programs\Lavasoft\""
    Wednesday, January 02, 2008 1:09:02 AM Finished installation.

    The advantage is that you can easily scan through the return codes for errors in the new version.

    The second change would be to start timestamping log file names, something like "WPI_Log_YYYY.MM.DD_HH.MM.SS.txt". Then new log files wouldn't overwrite old log files so you could track a bug across multiple install attempts. I'm not sure how to do this one.

    Again, fabulous program and thanks to everyone who's worked so hard to make it possible.

    Best,

    Kevin

  8. Hi everybody,

    I have a UCD that I haven't updated in about a year. I'm trying to migrate my WPI 5.3 config.js and options.js into WPI 6.0. Is there a quick and easy way to do this or do I have to rebuild from scratch?

    Apologies if this topic has been recently covered. I dug for a bit but couldn't find anything on the forums.

    Cheers,

    Kevin

  9. did anyone ever succeed in creating a relatively easy-to-implement right-click iso burning option? if so, could you please post it? just something that'll let you right click on an iso and select "burn to cd" or "burn to dvd." cmenu extender applies to all files, not just specific types, tryit.zip doesn't have that functionality, and i never found a difinitive reg key entry that didn't involve piggy-backing off of some other program. thanks everyone :)

    kevin

  10. On the backend, how does nLite rename administrator accounts? Is it a registry tweak? Is this being done through nlite.cmd at guirunonce? It'd be a huge help. Thanks everyone.

    Kevin

  11. 1) ok

    2) would you though? they're just mkdir/copy/paste/delete commands for the most part. if it tries to copy something that isn't there, it won't hurt anything. if it repastes something that's already there, it'll just overwrite, if it mkdirs a directory that's already there, it won't change anythign, if it tries to delete somethign that's not there it'll just not do it. so it might increase my chances of actually getting it done, no? might give some interesting error codes in the wpi log but, the real test is only whether the start menu turns out right.

    it's a dirty job fix, but might work?

    thanks,

    kevin

  12. thanks for the advice sadicq. so there's something specific about mozilla's installers? should i just add a sleep command at the start of the batch file?

    it seems to be happening with other programs too, though. the batch file to copy windirstat also doesn't seem to consistely work, unless i run it directly.

    cmdow @ /HID
    @echo off

    mkdir "c:\program files\WinDirStat\"
    copy "%CDROM%\Software\Extras\WinDirStat\windirstat.exe" "c:\program files\WinDirStat\"
    copy "%CDROM%\Software\Extras\WinDirStat\windirstat.lnk" "%AllUsersProfile%\Start Menu\Programs"

    yesterday this created a windirstat directory in program files and didn't copy anything.

    thanks in advance for the help.

    kevin

  13. I'm working on an unattended WinXP Pro DVD with WPI 5.1 followup. For a number of program installations, I run a small batch file after the main installation command to clean up that program's start menu entries. Often, though the programs install correctly, the followup batch files don't run at all or don't finish. When I run them manually from the CD they function just fine. Also, I've checked the execution directories in my config.js and they're ok too. Does anyone have any ideas?

    Appologies for the noobishness. Any help would be greatly appreciated.

    Here's my Config.js file and one of the sample batches. Again, sometimes all of the commands in a batch file execute properly, sometimes none of them, sometimes only the first few.

    firefox_start.bat:

    cmdow @ /HID
    @ECHO OFF

    copy "%ALLUSERSPROFILE%\start menu\programs\Mozilla Firefox\Mozilla Firefox.lnk" "%ALLUSERSPROFILE%\start menu\programs\"
    rmdir /S /Q "%ALLUSERSPROFILE%\start menu\programs\Mozilla Firefox\"

  14. I'm working on an unattended deployment of Windows XP Pro and for security reasons I need to 1) change the admin account name and 2) encrypt the admin password in the winnt.sif file. I also need to autologon to windows on first boot using either the admin account or th default account to install applications. I've been trying to do this (mostly) with nLite but having problems. Does anyone have any ideas? Here's my process:

    - Use setupmgr to generate an encrypt the password.

    - Configure nLite to setup unattended answer file, options, and make ISO.

    - In nLite's unattended setup, enter plaintext passwd and set autologon to 1

    - In nLite's options setup, rename the administrator to "BigBro"

    - At the make ISO pause, copy the encrypted passwd from setupmgr into the winnt.sif file in i386.

    - Set encrypted password to "yes" in winnt.sif

    - Create and burn ISO

    When I try the installation, it tells me the password is invalid at the first login attempt. If I click ok and enter the correct plaintext password and the BigBro username, it works just fine. Any thoughts?

    Thanks,

    Kevin

  15. A small unrelated bug:

    When switching between different configurations from the gui installer, WPI sometimes fails to select all the proper check boxes. This only happens when switching between configurations that default to competing exclusions.

    For instance, in the attached config.js, the Laptop configuration has SAV10 Unmanaged selected while the desktop configuration has the SAV10 Managed option selected. If choose the Laptop config in the dropdown menu on the left, it selects SAV10 Unmanaged just fine. If I then select desktop, it unchecks SAV10 Unmanaged but leaves SAV10 Managed unchecked as well. The problem is fixed if I unselect everything between selecting the different configurations.

    Help me MSFN, you're my only hope.

    Kevin

    configCleaned.js

×
×
  • Create New...