For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > March 2006 > Smatphone installation problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Smatphone installation problem
Lightning

2006-03-15, 2:05 pm

Wanted to create reg. value using setup inf file , that will hold full path to the installed application:

[MyData]
HKCU,Software\%AppName%,Location,0x00000
000,%InstallDir%

Everything works just fine. Key value is \IPSM\Program Files\MyApp

But when i select installation on Storage Card instead of Main memory , the reg value created is: *again* \IPSM\Program Files\MyApp, instead of \Storage Card\Program Files\MyApp.

So, when installing in storage card i get an invalid path.Need to find a way to store correct installation location.

Any help appreciated!
GG

2006-03-16, 3:58 am

"Lightning" <Lightning.24qmal@mail.codecomments.com> wrote in message
news:Lightning.24qmal@mail.codecomments.com...
>
> Wanted to create reg. value using setup inf file , that will hold full
> path to the installed application:
>
> [MyData]
> HKCU,Software\%AppName%,Location,0x00000
000,%InstallDir%
>
> Everything works just fine. Key value is \IPSM\Program Files\MyApp
>
> But when i select installation on Storage Card instead of Main memory ,
> the reg value created is: *again* \IPSM\Program Files\MyApp, instead of
> \Storage Card\Program Files\MyApp.
>
> So, when installing in storage card i get an invalid path.Need to find
> a way to store correct installation location.
>


I had the same problem. Solved with a special command for cabwizsp:

1) Create an xml file with this content (es. savepath.xml)

<characteristic type="Registry">
<characteristic type="HKCU\Software\%AppName%">
<parm name="Location" value="%InstallDir%\%AppName%" datatype="string"
translation="install" />
</characteristic>
</characteristic>

2) run cabwizsp with this command line:

CabwizSP.exe AppName.inf /postxml savepath.xml

HTH,


--
Giuseppe Govi
g.govi <at> vodafone.it




Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com