sHaDYvB Posted January 8, 2006 Posted January 8, 2006 (edited) Hii guys i think it is my first post after a long while absence of this beloved forum ,,howeva ,,i'm making a new WPI project , and i've made the theme and all is going well ,, but there is nothing bieng installed due to PATH ERR0R in each program ,, i'm trying it from my harddisk , is is possible , or not ??and how can i force it to use a global variable ( not %CDROM% , like %SYSTEMROOT% ) ??? i've been trying it for 3 days ,, and i can't help it anymore ...i'm waiting for ur answer guys ..... Edited January 8, 2006 by sHaDYvB
Sonic Posted January 8, 2006 Posted January 8, 2006 The path is generated by position of WPI.ico file ... don't modofy %cdrom% variable in batch file it's nothing about path of programs ...If your WPI.ico is in D:\ %cdrom% will D:\ soin your config.js you can set %cdrom%\\Utils\\Winrar.exe You can change the name of this "pointer" file instead wpi.ico ... for example I use the batch itself as pointer file ...
sHaDYvB Posted January 9, 2006 Author Posted January 9, 2006 The path is generated by position of WPI.ico file ... don't modofy %cdrom% variable in batch file it's nothing about path of programs ...If your WPI.ico is in D:\ %cdrom% will D:\ soin your config.js you can set %cdrom%\\Utils\\Winrar.exe You can change the name of this "pointer" file instead wpi.ico ... for example I use the batch itself as pointer file ...thx v. much for ur concernsry about not mentioning the whole storyi've already changed the pointer to the blahblah.SP2 file that comes with windows ,, ( as i'm integrating WPI with an unattended windows xp sp2 installation ) ...but the problem is that i want to use another variable than %CDROM% ,, cauz i'm always installing from the CD ,,i want to instruct WPI to use it is current place to install programs from ...but im facing difficulty in putting another variable ( which i've assigned in a global variable like %InstallSRC% ) int the installation string ..when i use %CDROM% variable ,, the whole process is taken out smoothly ,, but when switching it with %InstallSRC% ( which i've assigned before ) or even %SystemRoot% ,, the err0rs begin to show from thier hides .. and it tells me it cannot find the file specified ..plz help me with that ,, as i'm in the process of integrating WPI and i need to test it once and while before attaching it to the ISO ..waiting for ur kind replies ..
nwarren Posted January 9, 2006 Posted January 9, 2006 This modification to the generate.js file might help you in the right direction:http://www.msfn.org/board/lofiversion/index.php/t50910.html(search for SWPATH if that link doesn't work)The only problem would be that you need to re-edit the generate.js files each time a new release is made.Unless kelsenellenelvian would be kind enough to add it it to the permanent code? PLEASE!!!!
sHaDYvB Posted January 15, 2006 Author Posted January 15, 2006 Thank u guys for help , but i couldn't use that link u gave ..howeva ,, after near 3 or 4 days working with java script ( which i dunno nothing about ) , i've discovered the source of the problem ,,and it took me much long time to tweak the WPI .js files to work from anywhere ( from cd , network , local path ,, any thing ) ,,,and after i've finished the whole thing , i used some user's tweak to pass all variables of the system to the replpath script in generate.js ,, not only the ones specified there ... and after that long effort , and good customization of the WPI .js files ,, i would ask the WPI project manager to edit the .js files to help new beginners have a smooth , clear installation with no errors ..plz help beginners , plz edit the WPI and if no one is free for that , i could do it myself and hand u the edited files to publish them as a new build ...
Kelsenellenelvian Posted January 15, 2006 Posted January 15, 2006 If you are talking about WPI being made to accept all enviroment variables that function has been added to the beta version.If not tell me what changes you made and I will look at them.
nwarren Posted January 15, 2006 Posted January 15, 2006 All environment variables is also useful, but the thread I recommended above uses the extra bits of code in generate.js to create a variable with the root folder path for the WPI implementation being run.If you run your installations from the "install" folder under the WPI path, then the commandlines simply use %SWPATH%\install\application.name.etc.SWPATH could be made available by creating an environment variable when running WPI thorugh a batch file, then your new environment variable code could retrieve this, but I'd argue that the root folder of the WPI.hta executable is a variable that is valuable to be exposed by WPI itself, and it's only such a few lines of code.That's a rather long winded way of saying I'd like my cake and eat it please - can we have both internal exposure of SWPATH and exposure of all the environment variables!!!Thanks, Nick
Kelsenellenelvian Posted January 15, 2006 Posted January 15, 2006 Show me your file with the changes commented please and I will look at them for addition to WPI overall.
sHaDYvB Posted January 15, 2006 Author Posted January 15, 2006 thx , i'll add all changed file soon , after i finish the whole changes ..
nwarren Posted January 15, 2006 Posted January 15, 2006 This summarises the SWPATH changes better than my code can http://www.msfn.org/board/lofiversion/index.php/t50910.html
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now