Jump to content

Recommended Posts

Posted

o_O

i modified my WPI ages ago and when i noticed these topics i started reading them. i figured that a newer WPI then mine would already have these functions but apparantly not.. mine was origionally 2. something.

i created a new variable named fullpath

cmd1[pn]=['%FullPath%\\Install\\ACDpro\\ACDSeepro.msi /qn <-- like there

and in generate.js

var FullPath = window.location.pathname.replace(/WPI.hta/, "")

plus the

rs = rs.replace(/%FullPath%/gi, FullPath);

These two lines make it work from ANY location besides network shares. (which can be solved from a batch file as posted elsewhere here.) cd-rom or hd or stepped away in whatever folder.

unless im reading wrong here this would be alot smaller than what you currently have.


Posted (edited)

In stead of editing the config file every time there is a change in the installation file I simply run a cmd file. I include the following lines to start in the background & determine the cdrom drive letter.

cmdow @ /hid

for %%i in (Z Y X W V U T S R Q P O N M L K J I H G F E D C) do if exist %%i:\XXXX_YYYY set CDROM=%%i:

You can replace the XXXX_YYYY with any valid file name.

No need for any fancy scripting. If any changes are required I simply edit the cmd file. That includes all the reg entries etc that may be required.

Edited by pmshah

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...