PDA

View Full Version : Get Ini Problem



NewsArchive
02-28-2009, 02:08 AM
Hello Friedrich,

my setup writes the subscription-key in an ini file. I use put ini. If i try to
read the ini with get ini i always get the no. "3" at result in my
variable.

Any idea?

Attached my wupdate scipt.

Thanks much and best regards Kai

NewsArchive
02-28-2009, 02:09 AM
Hi Kai,

> my setup writes the subscription-key in an ini file. I use put ini. If i
> try to read the ini with get ini i always get the no. "3" at result in
> my variable.

That means "The provided subscription key is invalid".

Make sure you are using the same "Encryprion Password" when you generate the
subscription and when you validate the key! And make sure the "Get INI..."
function really reads the subscription key from the INI.

Does this help?

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
02-28-2009, 02:09 AM
Hello Friedrich,

it looks like the get ini reads only a 3 from the ini. This results in my
variable %subscriptionkey%.

This is before i check the validation.

Best regards
Kai

NewsArchive
02-28-2009, 02:10 AM
> it looks like the get ini reads only a 3 from the ini. This results in
> my variable %subscriptionkey%.
>
> This is before i check the validation.

See attached demo. Please copy the attached "subscription.ini" to c:\test

It reads the INI from c:\test and displays the SubscriptionKey value (which
is "hello, this is my super cool and top secret subscription key" in this
case).

Does this help?

Friedrich

NewsArchive
02-28-2009, 02:11 AM
> it looks like the get ini reads only a 3 from the ini. This results in
> my variable %subscriptionkey%.

By the way, you set %SUBSCRIPTIONKEY% in Line 26 and overwrite it
immediately in Line 27 with the result of the verification call. It's "3"
because "The provided subscription key is invalid".

Friedrich

NewsArchive
02-28-2009, 02:11 AM
Sorry Friedrich,

see the problem: have to change/switch the variables %SUBSCRIPTIONKEY% and
%SUBSCRIPTIONRESULT% in Line 27.

Works now. Thanks much!!

Kai

NewsArchive
02-28-2009, 02:11 AM
>
> Works now. Thanks much!!
>

Great! :)

Friedrich