Sonic Posted December 13, 2005 Posted December 13, 2005 (edited) delete me, finally I have rewriten generate.js to my objectifs ... Edited December 13, 2005 by sonic
glent Posted December 14, 2005 Posted December 14, 2005 care to post what you changed and what it does?
Kelsenellenelvian Posted December 14, 2005 Posted December 14, 2005 Yeah I would like to see what you did to.
Sonic Posted December 14, 2005 Author Posted December 14, 2005 (edited) In fact, generate.js generates path %cdrom% as correct path with it runs from a local folder, but when it runs on network (I mapp to a Z: drive) the path generated becomes Z:\\Folder\MySetup.msi /qb so RunonceEx works because it can read after \\ ... but when I have regedit /s z:\\regfile.reg , regedit can't handle \\ and error .... so I have removed one \ from my config.js but after when I run from local folder path become Z:Folder\MySetup.msi /qb ........ and finally I'm boring to find the good solution so I'm thinking about other way ...So, finally I have "tuned" generate.js adding new two variables (because during my finding solution I have thinking about other possibility ^^) %apps% and %logs% ... this two paths are define in cmd environnement by my batchfile (edit: I prefer CMD environnement to find path & co ) (which it test folder if exist, network more or not & more ...) and generate.js replace path ... function replpath(u) { // softs = WshEnv("sapps"); //sapps set in batch like "set sapps="...." logs = WshEnv("slogs"); //slogs set in batch like "set slogs="...."// rs = rs.replace(/%softs%/gi, softs); rs = rs.replace(/%logs%/gi, logs);I have posted too fast so you can delete me ^^Goodbye & big great job to all contributors of wpi, I "tune" this all the day and it will be perfect soon ! Edited December 14, 2005 by sonic
Sonic Posted December 22, 2005 Author Posted December 22, 2005 (edited) I'M BAD VERY BAD !!!During the discovering of WPI (few months ago ...) I have edited my configs.js & useroptions.js ... and I have set discpath='root' ! why? I don't remember ... so I have many error with \\ & co. ....I have all recorrect my wpi and now works great , configs too .. I'm happy ^^ ... Now to get perfect, is it possible to search WPI.ico in parrent directory ? (I have tried but errors ...)Thanks. goodbye. Edited December 22, 2005 by sonic
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now