Having problems passing key to wyUpdater

I am using Inno Setup and i am trying to pass the key to wyUpdate so wyUpdate can pass the key to the web server and give the update to wyUpdate

Thanks here is a bit of code which i was able to do

[Run]Filename: "{app}\Updater.exe"; Parameters: "-urlargs:\""PkeyPage.Values[1]"; Description: "Launch updater to download game"; Flags: postinstall nowait skipifsilent

Did you use the %urlargs% variable in the download site? Did you get an error when you passed the product key? Do you have logging in your php script?

I used the information from https://wyday.com/limelm/help/saas-and-time-limited-licensing/i followed the information and everything works fine on the web part it is just passing the key and all i got from the key was this in the error

Error trying to save file: Error downloading "http://studios.videoscape.org/limit-updates/?update=VSU.wys&pkey=PkeyPage.Values[1]": The remote server returned an error: (403) Forbidden.

Ok, this means you're not properly passing the product key to wyUpdate. That is, this is a problem with your InnoSetup script.

You have to use braces (I believe) to escape variables when you're using them in a string. See the InnoSetup help documentation.

PkeyPage.Values[1] is that the correct value to get the key? it looks like it

If you're using our example script, then no, that's not the right value. Use "PkeyPage.Values[0]". Also, you still need to escape the value like I said above.

Sorry but where do i escape it? i haven't used this before.

You're passing in "PkeyPage.Values[0]" which Inno Setup interprets literally (that is, it sees it as a string, *not* as a variable with a string inside of it).

You need to pass something like this: {#PkeyPage.Values[0]}, which "escapes" the string to output what's inside the string (the product key).

So you end up with something like this:

[Run]Filename: "{app}\Updater.exe"; Parameters: "-urlargs:\""{#PkeyPage.Values[0]}"; Description: "Launch updater to download game"; Flags: postinstall nowait skipifsilent

This is all in the Inno Setup help documents.

Thank you, so much.

I am getting an error saying [ISPP] Undeclared identifier: "PkeyPage".

Yes i am using your example.

Sorry, I don't have Inno Setup in front of me right now. You might have to set another variable first, then use that variable in the string.

var    pkey: String;


Then

pkey := PkeyPage.Values[0];

Then,

[Run]Filename: "{app}\Updater.exe"; Parameters: "-urlargs:\""{#pkey}"; Description: "Launch updater to download game"; Flags: postinstall nowait skipifsilent

Or something like that. Your best bet is to look into the Inno Setup help documents to find out exactly how to do it.

Could you point in the correct direction?

ThanksSorry this is my first time working with this