Jump to content

sadicq

Member
  • Posts

    273
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Romania

Everything posted by sadicq

  1. Offtopic: Multumesc si felicitari de asemenea. Ontopic: yes, .cmd is completly compatible with .bat Try this on any windows system: assoc .cmd You get "cmdfile" Then ftype cmdfile You get cmdfile="%1" %* For bat assoc .bat You get batfile Then ftype batfile You get batfile="%1" %* So they really are the same thing (actually bat files are more often used because they offer backwark compatibility. All normal cmd commands will work on windows 98 (copy, rd, del etc) But about the reg commands: regedit.exe will accept the same parameters with the XP one. "regedit /S bla.reg" will work. However, I don't know for sure if reg.exe was included in the vanilla version of Win98. I think it was bundled with some resource kit, so try using regedit /s or put a reg.exe on your ua cd just to be sure.
  2. Did you try changing their extension into .bat? Just try it because I know autoexec.bat was working ...
  3. i can confirm that js doesn't allow you to do that. You can make a popup in html with 3 submit buttons.
  4. btw, the img tag is not closing with </img> ... instead use <img src="..." /> <img src="./themes/Glossy/continue.gif" align="absbottom" class="mainbtn" border="0" name="continuebutton" id="continuebutton" onClick="StopAudio(); stopInterval(); CreateFile('install');" onMouseDown="document.continuebutton.src='./themes/Glossy/continuedown.gif';" onMouseOver="document.continuebutton.src='./themes/Glossy/continueover.gif'; stm(getText(ttInstall),Style[0]);" onMouseOut="document.continuebutton.src='./themes/Glossy/continue.gif'; htm();" /> will be something like <script language="javascript"> document.write("<img src=\"./themes/" + Theme + "/continue.gif\" align=\"absbottom\" class=\"mainbtn\" border=\"0\" name=\"continuebutton\" id=\"continuebutton\" onClick=\"StopAudio(); stopInterval(); CreateFile('install');\" onMouseDown=\"document.continuebutton.src='./themes/" + Theme + "/continuedown.gif';\" onMouseOver=\"document.continuebutton.src='./themes/" + Theme + "/continueover.gif'; stm(getText(ttInstall),Style[0]);\" onMouseOut=\"document.continuebutton.src='./themes/" + Theme + "/continue.gif'; htm();\" />"); </script> Note that the script is on one line only.
  5. I hope I can get to this tonight or in the worst case tomorrow night.
  6. Well, it would be nice to have these options. I just want to know if this is going to be implemented in the official WPI now or later. So, if kel or mritter decide to work on this, I will be very happy. If not, I guess I'll modify the code myself.
  7. try replacing <script language="javascript"> document.write("<td background='./Themes/" + Theme + "/topbar.jpg' width=\"100%\">"); </script> with <script language="javascript"> document.write("<td colspan=\"2\" background=\"./Themes/" + Theme + "/topbar.jpg\" width=\"100%\">"); </script> I did not test this, so tell us if this is working. For the second problem: I don't think this solves your problem, but I don't think you need the <a> tag. I just put the event aactions directly on the <img> EDIT: Note the "id" property declared for the img tag. <img src="./themes/Glossy/continue.gif" align="absbottom" class="mainbtn" border="0" name="continuebutton" id="continuebutton" onClick="StopAudio(); stopInterval(); CreateFile('install');" onMouseDown="document.continuebutton.src='./themes/Glossy/continuedown.gif';" onMouseOver="document.continuebutton.src='./themes/Glossy/continueover.gif'; stm(getText(ttInstall),Style[0]);" onMouseOut="document.continuebutton.src='./themes/Glossy/continue.gif'; htm();"> </img>
  8. I was just thinking if it could be useful. It is not hard to implement (at least I think so). But it requires these new strings to be stored somewhere. So once WPI will define some new constants for categories, it should go further and offer more options for the categories. IMO, they can even be deployed in useroptions.js (near the category order) for now.
  9. Do you think we could use a "Category description"? This idea just hit me a few minutes ago ...
  10. I'm at school so I don't have time to search it ... but take a look at this: http://www.w3schools.com/js/js_popup.asp
  11. I don't know for sure if this is compatible with 5.0. Actually, i really think it is not. I saw that the config now must have a semicolon on every line end. wait and stick to the editor included in the wpi for the moment. It is very fast now and that makes me use it again. I will look at this soon enough, but I have to modify the code in more than one place for it to become compatible with 5.0.
  12. here it is the new version with an X for missing order numbers. Thanks for this great idea. I find it very useful myself. config_lister.au3 config_lister.exe
  13. Unfortunately I don't know enough js to make this and I still have 2 weeks of school ... but if nobody starts working on it I'll try to make this at the end of the next week. I can do it really simple in autoit, but I'll have to learn some js. Anyway, it is good to learn new things once in a while
  14. Ok. I'll try to do this. Its initial purpose was finding duplicate order numer items, but it's nice that people use it for simply listing the config.
  15. almulder said in a previous post something about a disk space indicator. So, I thought that if a user wants (and I'm sure many will) to fill in a special field (space occupied on disk when installed), than we can have a progressbar for each program. The idea is very simple (reading space left and comparing it to the entry's field value), and it is not such a good idea to make the user input it manually, but I'd like to know what you guys think about this. Of course the occupied space on disk can be computed using a "test" install and comparing the initial and final disk space left after each entry's install.
  16. Well, you'll have to modify the wpi.hta for this one and add one line ... I still couldn't solve the css path, but I'll try again in the afternoon or tomorrow night. The others are pretty simple to use once you modify the wpi.hta. Just for your curiosity, this is the modification I made: [COPY] var.js to wpiscripts/var.js [OPEN] wpi.hta [FIND] <script type="text/javascript" src="./wpiscripts/core.js" application="yes"> </script> [AFTER, ADD] <script type="text/javascript" src="./wpiscripts/var.js" application="yes"> </script> [OPEN] wpi.htm [FIND] <img id='bgpic' src='./themes/Glossy/wallpaper.jpg' width="100%" height="100%"> [REPLACE WITH] <script language="javascript">document.write("<img id='bgpic' src='" + themes_dir + "wallpaper.jpg' width=\"100%\" height=\"100%\">");</script> This is only the second you asked. The others will come tomorrow (all are easy to do except the css file).
  17. I'm glad I could help. here is another archive with 3 images now another_one.zip
  18. I hope I understood correctly. If so, this is only a method you could do this. Notice I'm a noob at js. The idea is this: var.js - your file with variables load.htm - the equivalent for wpi.htm clicky.gif - a sample image Take a look at the archive I attached and I think you'll understand. The variable name I used is "a". var.zip
  19. Thanks for reporting this. I modified the code and now it works fine with the latest version. EDIT: my 100th post ... just got my second star config_lister.au3 config_lister.exe
  20. i'll try to look at it in this afternoon, but what exactly is the problem? i mean, is any major change in the config creating process I should now about before3 trying this? (I'm interested only in the entry's name and the entry's order number which used not to be enclosed in quotes).
  21. As far as I know, it works or at least it used to work for the previous version. it is supposed to open your config.js, read all the info in it and then output to config.txt only the name and the install order number of each entry. This is useful when you have duplicate order numbers. Example: 5 Microsoft .Net Framework 2.0 6 Mozilla Firefox 1.5.0.4 10 Winamp 5.21 Lite 15 Adobe Acrobat Reader 7.0.7 20 Ascentive Library Files 25 7-Zip 4.42 30 Autoit 3.1.1.123 Beta LOL, the error is shown because at least one of your order numbers is not numeric (it contains alphanumerical chars, maybe?) Post your config and I'll look into it.
  22. Well, I had no succes with a selfextarcting archive, but as you suggested, you can try to edit the uninstaller with such an editor (I don't know if this will work because I don't have any editor installed atm), although I seriously doubt it will work. We are talking about .exe and I can't say for sure if it will or it will not fail... The only working solution I have is this: Create a script that accepts command-line paramters and, using the data you pass to it with those pamateres, delete the folder you want and run the original uninstaller. Put the compiled script in system32 and leave it there. now edit all your shortcuts to the orgininal uninstaller so they will point to something like script.exe /i foldertodelete /o originaluninstaller also edit the corresponding entry in the registry so the add/remove programs link points to the same thing. if you can't find another method or you think this is really going to fit your needs, post back and I will create the script for you (I've something similar in autoit and I think I can copy/paste some code).
  23. Maybe this not exactly what you want, but it surely does its job. Here is the idea: create an exe that includes the original unisntaller AND a executes a delete command on your folder (in the all programs menu). The first method: Autoit script FileInstall("Uninstaller.exe",@TempDir) RunWait(@TempDir & "\Uninstaller.exe") FileDelete(@TempDir & "\Uninstaller.exe") FileDelete(@StartMenuCommonDir & "...") FileDelete(@StartMenuCommonDir & "...") FileDelete(@StartMenuCommonDir & "...") ;you can also remove full dir by executing a _RunDos("rd folder"), but you have to include the "Process.au3" library ... I'm writing this from memory so please check the sintax. The second method: selfextrating archive I'm not going to explain in detail how to do such a thing because I personally prefer the first method, but let's say the archive executes install.cmd which launches the original uninstaller and deletes the files after that. Post back any question if something is not clearly explained.
×
×
  • Create New...