Jump to content

zorphnog

Member
  • Posts

    427
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by zorphnog

  1. Well I haven't tried it, but I think this is what you want. You should be able to use the dos environment variable %programfiles%. Use something like this as a command: %programfiles%\Application\autoIt.exe
  2. What exactly are you tring to do? If you are trying to read a serial number, as in your example, there are better ways to do this. The advice @sadicq mentioned will work, but the problem there is that another application can start installing before the current one finishes. If you can explain exactly what you are trying to do, there may be a better solution than running two commands at once.
  3. Nice contribution RJTPlomp. Should be a helpful tool.
  4. Ok, I see what you're saying now. Sorry I misunderstood you. Could you post your config file?
  5. The solution @sadicq supplied is the only change that needs to be made. Make sure that there is a gtxt class in the wpi.css file of your theme. You can change the color of the gcond entries there. .gtxt { font-family: arial; font-weight: bold; color: #A0522D; //<----- Change this value font-size: 8pt; margin-left: 5px; margin-right: 10px; }
  6. @larciel: IE script error messages are a bit misleading. The file listed in the error is where the function call originated from, not necessarily the file where the error occured. I agree with ICANIT, the problem most likely lies within your config file. If you upload it we'll at least have a good starting point.
  7. Check out the MSFN Application Installs forum. Do a search there and you should find the answer for most applications.
  8. Ok, good. I was starting to get confused as to what you were talking about.
  9. I don't know for sure, but I wouldn't think there would really be any compatibility issues. I mean its just html and javascript. The only thing that might be different are the locations of registry entries and the system file for finding the dospath. I haven't really dissected Vista yet, though, so I don't know.
  10. The javascript error messages are misleading. The line and character numbers are not always in the file reported in the error message. The file in the error message is where the function call originated. So thats why the error is confusing. My guess is that your config file has somehow been altered and is not loading correctly. What did you add to your config file? Can you post your config file?
  11. Solution for category uncheck bug. In check.js: Function setUnchecked else { var chkbox = document.getElementById("chkbox"+i); var lbl = document.getElementById('lbl'+i); if (chkbox==null) return; if (forc[i]!=null && forc[i]=='yes') //<------------add this line return; //<------------add this line chkbox.checked=false; lbl.className='txt'; tabs++; uncheckChildren(i); if (DisableOnDepsNotMet) disableChildren(i); if (useExclusions) checkExclusions(i); tabs--; } Function checkCategory if (isCategory(thisChk)) //If category checkbox was checked { thisCat = thisChk; for(i=1; cat[i] != null; i++) { if (cat[i] == thisCat) { if (state) { setChecked(i); checkDeps(i); } else { // setUnchecked(i); //<--------remove the "//" at the begining checkDeps(i); } } } }
  12. Definitely a bug. Here's the fix. In check.js: Function setUnchecked else { var chkbox = document.getElementById("chkbox"+i); var lbl = document.getElementById('lbl'+i); if (chkbox==null) return; if (forc[i]!=null && forc[i]=='yes') //<------------add this line return; //<------------add this line chkbox.checked=false; lbl.className='txt'; tabs++; uncheckChildren(i); if (DisableOnDepsNotMet) disableChildren(i); if (useExclusions) checkExclusions(i); tabs--; } Function checkCategory if (isCategory(thisChk)) //If category checkbox was checked { thisCat = thisChk; for(i=1; cat[i] != null; i++) { if (cat[i] == thisCat) { if (state) { setChecked(i); checkDeps(i); } else { // setUnchecked(i); //<--------remove the "//" at the begining checkDeps(i); } } } }
  13. @RJTPlomp: The category check box will check apps, but not uncheck them. Checking a category box will check any unchecked items within that category. However, unchecking the category does not uncheck all the apps in that category. This may be something that needs to be changed. Good catch RJTPlomp.
  14. I don't use it at all (main window or installer) so it wouldn't matter to me either way. To me it makes more sense to have it only in the installer window.
  15. I am working with mritter to try and incorporate this in the 5.4 release. As of now we are testing it internally, but hopefully it will make it into the 5.4 release. I'm afraid you'll just have to wait until then to get the stable version. To answer your questions though, it will allow you to restart after you install office 2003. You can add a "shutdown -r -f -t 00" command to your office 2003 setup. It should work fine from a cd. It writes to the registry and the systemdrive (i.e. C:). With all of this said, I strongly suggest waiting for the 5.4 release.
  16. Sorry, I don't know French. Would you mind translating the error window? Is it something about having to download the Installer.hta file? Are you purposely trying to copy Installer.hta to the C: drive, or is it forcing you to do so?
  17. I have posted a solution for allowing reboots as I said I would. I really need some help testing it out though. Please see Resume Install After Reboot for the download and a description of the solution if you are interested in helping.
  18. @bvstaff Have you tried creating a batch file for mounting the network path and starting wpi as stated in the manual? Per the manual: @ECHO OFF SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION SET SHARE=\\SERVER\SHARE TITLE Running WPI from "!SHARE!"... PUSHD "!SHARE!" ECHO.Mounting "!SHARE!" to "!CD!"... PUSHD WPI ECHO.Starting WPI... START /wait wpi.hta POPD ECHO.Unmounting network-drive... POPD With your setup, assuming TOTALWPI is in your shared folder: @ECHO OFF SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION SET SHARE=\\<IP>\<Path to Share folder> TITLE Running WPI from "!SHARE!"... PUSHD "!SHARE!" ECHO.Mounting "!SHARE!" to "!CD!"... PUSHD TOTALWPI ECHO.Starting WPI... START /wait wpi.hta POPD ECHO.Unmounting network-drive... POPD If TOTALWPI is your shared folder then remove "PUSHD TOTALWPI" and one of the "POPD" commands.
  19. I've tested it out on my computer and it works fine. Are you entering the gcond entry through the configuration wizard or are you editing your config file? If you are editing the config file manually then the code you supplied should work. If you're entering through the configuration editor, don't use double backslashes as they will be doubled by WPI in the parsing process (i.e. "HKEY_LOCAL_MACHINE\\SOFTWARE\\TrendMicro\\PC-cillinNTCorp\\CurrentVersion\\DatabasePath" becomes "HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\TrendMicro\\\\PC-cillinNTCorp\\\\CurrentVersion\\\\DatabasePath"). Type the following in the gcond textbox: try{WshShell.regRead("HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion\DatabasePath") == "\\SSD-AV-01\ofcscan\FileDB" ? true : false}catch(ex){;} I did it this way and it works perfectly.
  20. Not a bad idea Francesco and it wouldn't be difficult to implement. However, the size of a file doesn't dictate how long it will take to execute. So I'm not sure if it would really be much different than what is already in place, as far as relaying the actual progress of the total install. I guess it wouldn't hurt though.
  21. ThunderHK: The link to your picture is broken. Can you fix it so we can have a look? Or write out the message? Thanks.
  22. I've been trying to create a way to resume an installation after reboot since commands are no longer run through RunOnceEx, and some installations force a reboot. I know other people have wanted to have the same functionality so I'm going to post the first release of what I've come up with so far. It's based off v5.3 with the latest bug fixes, so I'll call it v5.3.01r for now. The solution that I've come up with is a combination of registry entries and a configuration file. When a WPI installation is started a configuration file of the programs that are going to be installed is written to %systemdrive%\rb_config.js. Once the installation has begun, the state of the installation is saved before each command is run. If a reboot occurs, the installation should restart via a registry entry in HKCU\Software\Microsoft\CurrentVerison\RunOnce, and the next command of the latest program installation is run. I have not implemented an automatic logon yet, but that is something I would like to add in the future. I would also like to add some options to the options wizard, but as I said this is the first release. I've tried to test it out as best as I can, but I'm hoping that those of you who find this helpful will help me out by reporting bugs. So without further adieu... --- removed --- Files that have been modified/added: - WPI.hta (modified) - Common\Installer.hta (modified) - WPIScripts\globals.js (modified) - WPIScripts\installer.js (modified) - WPIScripts\installer_log.js (modified) - WPIScripts\main.js (5.3 bug fix) - WPIScripts\reboot.js (new file) - WPIScripts\timer.js (5.3 bug fix)
  23. I was introduced to WPI at v5.1 so I'm not certain, but I believe the versions prior to 5.x used the RunOnceEx style to install. The 5.x versions started using a command handler for installations. The only disadvantage I've seen is not being able to resume after a reboot, but I am currently working on a reboot resume solution and hope to post something in the next few days.
  24. Hi all. I'm new to the forum, but love the work thats been done here. Very helpful forum. Anyway I'm fairly new to silent installs and the only problem I have found are with InstallAnywhere installs. I've searched the forum and only found a few topics and no real answers. I've searched the InstallAnywhere website and found the -i SILENT switch, but I need to change the default values for the program I am trying to install. So I attempted the properties file method, and I can get all but one property to change. I tried using AutoIt, but InstallAnywhere is Java-based and therefore you cannot use control functions or read window text (only titles). And before you go asking what program I'm trying to install, its a privately developed app for the company I work for. I've tried getting in contact with the developer, but that has proved to be harder than I thought. So any ideas on how to automate this? Oh yeah, I've also tried installRite but its doesn't install correctly. ANY ideas would be appreciated. Thanks.
  25. Its used to set the dospath environment variable in generate.js, but I'm not sure what you would use the dospath variable for.
×
×
  • Create New...