Jump to content

Taskill and xcopy don't work in 5.0.1?


Recommended Posts

Can someone tel me what I am doing wrong.

prog[pn]=['WindowBlinds v5.0 Enhanced + 60 skins']

uid[pn]=['WINDOWBLINDSV50']

picw[pn]=['128']

pich[pn]=['128']

desc[pn]=['WindowBlinds v5.0 Enhanced stelt je in staat het uiterlijk van een Windows XP-machine geheel naar eigen smaak in te stellen.U bent degene die de look van uw bureau en vensters bepaalt.INCL. 60 skins.']

textl[pn]=['Bottom']

texti[pn]=['1']

ordr[pn]=[710]

cmd1[pn]=['%cdrom%\\Install\\Apps\\WindowBlinds5.0\\WindowBlinds.exe /s']

cmd2[pn]=['%cdrom%\\Install\\Apps\\WindowBlinds5.0\\WindowBlinds.cmd']

cmd3[pn]=['xcopy /Y /e /Q "%cdrom%\\WPI\\Install\\Apps\\WindowBlinds5.0\\File" "%programfiles%\\Stardock\\Object Desktop\\WindowBlinds\\"']

cmd4[pn]=['%cdrom%\\Install\\Apps\\WindowBlinds5.0\\Skins.exe']

cmd5[pn]=['%cdrom%\\Install\\Apps\\WindowBlinds5.0\\DogmaXTheme.exe']

rega[pn]=['%cdrom%\\Install\\Apps\\WindowBlinds5.0\\WindowsBlindsInstellingen.reg']

gcond[pn]=['FileExists(\'%programfiles%\\\')']

cat[pn]=['Uiterlijk van Windows']

pn++

prog[pn]=['Zone Alarm Pro v6.1.737.000']

uid[pn]=['ZONEALARMPRO61737000']

excl[pn]=['KERIO420','SYGATEPERSONALFIREWALLPRO']

picw[pn]=['128']

pich[pn]=['128']

desc[pn]=['Zone Alarm Pro 6.1.737.000 dit programma is het meest populair,heel gebruiksvriendelijk en daardoor ideaal voor de thuisgebruiker.Het biedt een goede beveiliging zonder dat u veel moeite hoeft te doen.Bovendien is Zone Alarm een van de weinige firewalls die ook e-mailbijlagen controlleert.U kunt zelf het beveiligingsniveau instellen.Als u eenmaal Zone Alarm hebt geactiveerd,draait het programma op de achtergrond en beschermt het systeem tegen inbrekers.Bij een inbraakpoging krijgt u een melding.']

textl[pn]=['Bottom']

texti[pn]=['1']

ordr[pn]=[745]

cmd1[pn]=['%cdrom%\\Install\\Apps\\ZoneAlarmPro.6.1.737.000\\ZoneAlarmPro.exe /s /i /noreboot /lickey xxxx-xxxx-xxxx-xxxx-xxxx']

cmd2[pn]=['%cdrom%\\Install\\Apps\\ZoneAlarmPro.6.1.737.000\\ZoneLicense.exe']

cmd3[pn]=['taskkill /F /IM zlclient.exe']

gcond[pn]=['FileExists(\'%programfiles%\\\')']

cat[pn]=['Firewall en Antivirus']

pn++

Maybe i need to make a command file of it an then :

cmd3[pn]=['%cdrom%\\Install\\Apps\\WindowBlinds5.0\\xcopy.cmd']

cmd3[pn]=['%cdrom%\\Install\\Apps\\ZoneAlarmPro.6.1.737.000\\Taskill.cmd']

Al works fine just these two thing I need to fix, sure that someone cantell me what i'm doing wrong.

Edited by Pliek
Link to comment
Share on other sites


WPI can't parse those commands directly, so we'll pass them to the cmd like this:

cmd3[pn]=['cmd /c xcopy /Y /e /Q "%cdrom%\\WPI\\Install\\Apps\\WindowBlinds5.0\\File" "%programfiles%\\Stardock\\Object Desktop\\WindowBlinds\\"']

cmd3[pn]=['cmd /c taskkill /F /IM zlclient.exe']

Edited by sadicq
Link to comment
Share on other sites

cmd3[pn]=['cmd /c taskkill /F /IM zlclient.exe']

This one doesn't work.

Code you gave me for xcopy that works perfect.

Whats the different between %cdrom% and %wpipath% in the example config Mritter an Kel use these different paramaters

I use %wpipath% Like Kel maybe thats why taskill doent work?

Somebody ?????

Edited by Pliek
Link to comment
Share on other sites

Are you sure the command doesn't execute right before the program starts (I mean it takes some time for the firewall to start, so the command may get executed after the firewall si installed but before it runs).

The same syntax works perfectly for me, but I had to make something like this for a program:

cmd3[pn]=['ping localhost -n 11']
cmd3[pn]=['cmd /c taskkill /F /IM zlclient.exe']

This will pause the script 10 seconds before moving to the taskkill command.

Link to comment
Share on other sites

Well, %cdrom% will return something like F: if

- wpi.hta is in the root of the drive

- win51 is in the root of the drive

- driver.cab is in the i386 folder on the drive (i386 must be in the root too)

- if none of the above, it will return the first directory that contains wpi.hta looking in the current path

Let's say the current path is C:\temp\wpi\blah and you have your wpi.hta in C:\temp.

WPI will look for it in C:\temp\wpi\blah. Because it can't find it, it will look for it in C:\temp\wpi.

Because it can't find it, it will look for it in C:\temp. So it will return C:\temp.

- if you have no wpi.hta in any directory in the current path, cdrom will return the drive from which you installed your windows.

Attention: this is "translated" by me from the code I saw in generate.js. It may very well be wrong.

On the other hand, %wpipath% returns the path to the folder from which wpi.hta is ran.

So, for only one normal disk, both will do the same.

But if you have 2 cd's with wpi in your drives, I guess %cdrom% will always return the first drive, while %wpipath% will return different things.

I hope I'm right :lol:

Edited by sadicq
Link to comment
Share on other sites

maybe thats why taskill doent work?

Are you using XP home?

Taskkill is only on XP Pro.

On XP home you have to use tskill.

No I use the Pro version. :}

Link to comment
Share on other sites

Feel like a real noop.....wrote taskill in stead off taskkill (must have wrote it to quick in my sush to test it).

Shame on me :blushing::blushing: , any way thanks for your command lines to make them both work....taskkill an xcopy. :thumbup

Thanks sadicq. :hello:

Edited by Pliek
Link to comment
Share on other sites

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...