Install directory issue with NSIS

A

anon

So far, the NSIS product is fantastic compared to the VS 'solution' for
installing an app. I actually got the install to work, and a
mutiple-CAB installation at that, with the core CF cab, SqlCE cab, and
OpenNETCF cab.

But I have 2 issues :

1) The program is being installed to the wrong directory. In the
Project Propeties, the Output File Folder is \Windows\Start
Menu\Programs\Games. When I install it on the Emulator, it installs to
the right directory. But when installing it on my actual device, it
ends up in the Programs directory. In the install script, I currently
have

InstallDir "$STARTMENU\Programs\Games\"

Any tips on how to get this into the Games directory? I've noticed
that if you look at it through the File Explorer, the path is /My
Device/Program Files/MyGame.

2) The program icon is missing, when viewing the Programs. On the
Emulator, the icon is displaying fine.

Finally, does anyone have an example of how (with NSIS) you can check
to see if the CF or SqlCE is already installed, so I don't install it
if I don't need to?

Thanks for any help.
 
G

Guest

Regarding your issues

1. Not sure if this is what your want… In your .inf file you’ll need to add:

[Shortcuts]
"My Game",0,"My Game.exe","%CE14%"

%CE14% is the games folder and this will create a shortcut to your game in
the Games folder.

2. You’ll need to install the NSIS Registry plug-in available at
http://nsis.sourceforge.net/Registry_plug-in and do something like this
http://nsis.sourceforge.net/How_to_insure_a_required_version_of_.NETFramework_is_installed

Did not have time to check whether it works on a PPC but hope this points
you at the right direction.

Gavin
 
A

anon

Gavin, thanks for your reply. However, that didn't work. I changed
what you recommended in my .inf file, rebuilt my cabs, re-compiled the
install script with the new cabs, deleted the old app (from the PC and
the PocketPC) just in case, and re-installed. It's still in the
Programs directory with no icon.

Anyone have any idea why the icon isn't appearing? I have set the
Build Action for the .ico file to 'Embedded Resource'. I didn't do
that earlier, but I re-installed since changing that and it's still not
appearing.
Regarding your issues

1. Not sure if this is what your want... In your .inf file you'll need to add:

[Shortcuts]
"My Game",0,"My Game.exe","%CE14%"

%CE14% is the games folder and this will create a shortcut to your game in
the Games folder.

2. You'll need to install the NSIS Registry plug-in available at
http://nsis.sourceforge.net/Registry_plug-in and do something like this
http://nsis.sourceforge.net/How_to_insure_a_required_version_of_.NETFramework_is_installed

Did not have time to check whether it works on a PPC but hope this points
you at the right direction.

Gavin


So far, the NSIS product is fantastic compared to the VS 'solution' for
installing an app. I actually got the install to work, and a
mutiple-CAB installation at that, with the core CF cab, SqlCE cab, and
OpenNETCF cab.

But I have 2 issues :

1) The program is being installed to the wrong directory. In the
Project Propeties, the Output File Folder is \Windows\Start
Menu\Programs\Games. When I install it on the Emulator, it installs to
the right directory. But when installing it on my actual device, it
ends up in the Programs directory. In the install script, I currently
have

InstallDir "$STARTMENU\Programs\Games\"

Any tips on how to get this into the Games directory? I've noticed
that if you look at it through the File Explorer, the path is /My
Device/Program Files/MyGame.

2) The program icon is missing, when viewing the Programs. On the
Emulator, the icon is displaying fine.

Finally, does anyone have an example of how (with NSIS) you can check
to see if the CF or SqlCE is already installed, so I don't install it
if I don't need to?

Thanks for any help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top