Jump to content

Recommended Posts

Posted (edited)

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

Posted (edited)

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
Posted

Thanks mate for your fast reply, I wil try it tomorror......I'll let you know the result. :thumbup

Posted (edited)
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
Posted

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.

Posted

Thanks sadicq.

I wil test it today....can you tell me the difference between %cdrom% and %wpipath% please........

Posted (edited)

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

Posted
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. :}

Posted (edited)

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
Posted

Strange but without "cmd /C" it didn't work at all.

Previous version of WPI had no problem with it.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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