I want to register an OCX after install,so I write the script like that
Shell.Execute("%SystemFolder%//regsvr32","OPEN","%AppFolder%//ocx//a.ocx")
but it don't recognize the "%AppFolder%//ocx//a.ocx".because the %AppFoler% now is "c:\program files",
so what can i do ?
I tried using the sessionvar.expand,but I failed.
best regard.
Shell.Execute("%SystemFolder%//regsvr32","OPEN","%AppFolder%//ocx//a.ocx")
but it don't recognize the "%AppFolder%//ocx//a.ocx".because the %AppFoler% now is "c:\program files",
so what can i do ?
I tried using the sessionvar.expand,but I failed.
best regard.
Comment