Archive: Install directory issue on PocketPC


Install directory issue on PocketPC
So far, the NSIS product is fantastic compared to the VS 'solution' for installing an app. I actually got the NSIS 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.

I've attached my .nsi file if anyone wants to take a look

Thanks for any help.


There seems to be a little bit of confusion. The NSIS installer runs on the PC, so $STARTMENU is the path to the start menu on the PC, not the Pocket PC. How does it matter if you install the files to the emulator or the device?

Maybe the script will shed more light on this. Try attaching it again.


Ok, trying to attach the .nsi file again...it may have got lost when I previewed my post...

Someone suggested changing the [Shortcuts] line in my .inf file, but I did that and it didn't work.


Still seems like the wrong direction to me. I don't see how NSIS's InstallDir can affect CEAppMgr.exe's decisions as to where to put files on the Pocket PC. Sounds to me like you should be looking into your CABs instead of the NSIS script.