mritter
Content Type
Profiles
Forums
Events
Posts posted by mritter
-
-
I did some quick searching, but found nothing on saving UTF-8. Do I need to specify the charset in the HTA? Something like:
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
0 -
Is everyone with this problem using nLite and/or RyanVM Integrator to launch WPI? Maybe that is messing with the reg keys??????
If you are, launch WPI the "traditional" way using CmdLines or other. See if it works then.
0 -
Give me a chance to look into it and test it out. I will get ahold of you forf testing.
Sheesh......
0 -
I will check in to it. Strange that you are the first one to ask for this. I would have thought it would have come up a long time ago.
0 -
OK. Did some more testing with actual programs. No, it wasn't working the way I thought. Do this:
{JSCRIPT}=if (getOSlang()=="ENU" && (getOSver()=="XP" || getOSver()=="Vista")) RunCmd("notepad.exe",true,false)
The second arg is to show output or not. Usually this will be true.
The last arg is the wait option:
true: will wait for program to finish
false: will not wait for program to finish
No need to specify {RUNBG}, change the last arg in RunCmd().
Sorry for the confusion.
0 -
Just for testing purposes, do
{RUNBG} notepad.exe
with your {JSCRIPT} code. It will launch it and keep on going to the next item.
0 -
{JSCRIPT}= if (getOSlang()=="ENU" && (getOSver()=="XP" || getOSver()=="Vista") ) {RUNBG} "%wpipath%\Install\autoit\EN\malwareEN.exe"
It's all in the parentheses...........
0 -
@mba2049:
I never thought of it that way. I did some quick tests and it can be done:
{JSCRIPT}=if (getOSver()=="XP") msiexec.exe /i "%wpipath%\Install\required\IE8\IE8-Setup-Full XP EN.msi" /qb
{JSCRIPT}=if (getOSver()=="Win7") msiexec.exe /i "%wpipath%\Install\required\IE8\IE8-Setup-Win7.msi" /qbYou may have to do some tweaking with the quotes. All I did for a test was:
{JSCRIPT}=if (getOSver()=="XP") alert("XP!")
You can call any JavaScript or WPI functions with {JSCRIPT}. Be careful with it.
0 -
No. I have a group of beta testers that I use.
I will be getting ahold of translators ahead of time because there are 300+ new strings. I would like to have them done before the release.
0 -
This idea has been on my To Do List for quite some time now. It would make things alot easier to just make folders for each category, then sub folders for each item.
The major issue would be when there are either multiple .exe's, and/or .bat or .cmd files. Which one is the one to use?
Whimsy and I talked a bit,and we came up with an idea to use .ini files. Something for the future......................
0 -
Just posting a little note that v8.0.0 is coming along very nicely. The amount of new features is HUGE. I still have some things on my To Do List that I want to get done before I release it. It will still be another month or two. But it will be well worth the wait.
0 -
Go to your first entry in the install order and add 2 commands of "notepad.exe" in a row at the top. If WPI stops and waits for you to close the first notepad before the second copy opens, then it is not WPI.
0 -
I had an idea on how to solve this, but, my computer crashed yet again. Maybe for good this time. It will be alittle bit before I get to this or anything else.
0 -
Oops. That variable is defined in globals.js. No big deal since you don't use it.
Will look into the quotes.
0 -
Bummer. It is not fixed. Another thing to add to my To Do List.
0 -
Email me your config file so I don't have to butcher mine up. I am pretty sure I already fixed this.
0 -
sqtrwe:
I added your request for the Read Me button. If ReadMe.txt exists in the WPI root the button will be displayed above Begin Install. The file is opened in a window.
0 -
deadbug:
Did I ever get with you on the {extract} question you posted? You MUST supply quotes for both source and destination:
{EXTRACT} "C:\MyFile.zip" "C:\Folder\Folder\"
0 -
djackson:
Why do you want to change directories? WPI is not running in command line environment, so I really doubt it could be done. But give me some details so I know what to check into.
0 -
icnocop:
cmd /c taskkill /? >c:\taskkill.txt
and update this function in core.js
function ReplacePath(v)
{
position="core.js";
whatfunc="ReplacePath()";
var i, rs=new String(v);
rs=rs.replace(/%wpipath%/gi, wpipath); // Replace WPI's special environment variables
rs=rs.replace(/%root%/gi, root); // WPI parent folder
if (hdd=="")
rs=rs.replace(/%cdrom%/gi, cddrv); // started from cdrom
else
rs=rs.replace(/%cdrom%/gi, hdd); // not started from cdrom
rs=rs.replace(/%sysdir%/gi, sysdir); // same as before
rs=rs.replace(/%dospath%/gi, dospath); // new variable
rs=rs.replace(/%oslang%/gi, oslang); // operating system language code
rs=rs.replace(/%userprofileroot%/gi, userprofileroot); // root of user folders
rs=rs.replace(/%comma%/gi, ','); // Put a comma in command line
rs=rs.replace(/&/gi, '&'); // Put an ampersand in command line
rs=rs.replace(/>/gi, '>'); // Put a greater than in command line
// Replace other (standard) environment variables (either global or defined in the process calling WPI)
var envarname, envvars=rs.match(/%[^ %\f\n\r\t\v]+%/gi); // find ALL substrings enclosed in '%' and not containing '%' itself or a white space character
if (envvars) // if any match
{
for (i=0; i<envvars.length; i++) // loop on the matches
{
envarname=envvars[i].substring(1, envvars[i].length - 1); // strip the match from its enclosing '%'
rs=rs.replace(envvars[i],WshEnv(envarname)); // replace it by the corresponding env var
}
}
return rs;
}0 -
Yeah, the Load button issue slipped through. They are fixed now.
HTA: I didn't create WPI, just took over the programming 3+ years ago. It was just a "simple" script when first created, but I have done my best to advance it. By being an HTA it doesn't have to run in a browser, can use more Windows' features than just plain JavaScript can. An HTA can do just about anything a compiled program can. And it has always been open source.
0 -
Download the latest build and use the new wpi.exe launcher. It runs with Administrator rights.
0 -
1) Works just fine locally, but with UNC paths they are not. Will get fixed.
\\ws29\c\wpi\wpi.exe theme=Windows
does not work
2) WPI.exe staying open was a topic from the start. Keeping it open is no problem.
0 -
1) Right now it does not take this into account. I will make it do as you suggested. Good idea.
2) No. You would have to either numerically or alphabetically make an entry with {REBOOT} the first in the category.
3) If you can tell me what reg keys to watch I can look into it.
4) Honestly, I forget. My install doesn't require a reboot. Anyone?
0
Can I save config.js in UTF8?
in Windows Post-Install Wizard (WPI)
Posted
That's what I need to hear. If 7.1 saves properly, but 7.3 does not, then I will see what was changed and modify the latest version.