Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / August 2007

Tip: Looking for answers? Try searching our database.

Installation not working on WM6?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rory.groves@gmail.com - 02 Aug 2007 14:25 GMT
Some (but not all) users are indicating that my application does not
install successfully when they upgrade to WM6 (no problems on same
device with WM5).

The application folder gets created in the /Program Files path, but no
files exist inside the folder.

Sounds like the installation is rolling back before it finishes,
however, there are no error messages.

I'm using NETCF2.

Any ideas?
<ctacke/> - 02 Aug 2007 15:03 GMT
Have you tested it on the WM6 emulator to see if it fails there?

Signature

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com

> Some (but not all) users are indicating that my application does not
> install successfully when they upgrade to WM6 (no problems on same
[quoted text clipped - 9 lines]
>
> Any ideas?
rory.groves@gmail.com - 02 Aug 2007 17:00 GMT
Did some more testing. Turns out that if i remove the reference to
"SETUP.DLL" in the installation package, it installs just fine.

I'm using that standard setup.cpp project to create a setup.dll that
makes some registry edits during installation. Is there a reason why
WM6 doesn't allow this?
Peter Foot [MVP] - 02 Aug 2007 18:27 GMT
Is your setup.dll signed?

Peter

Signature

Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

> Did some more testing. Turns out that if i remove the reference to
> "SETUP.DLL" in the installation package, it installs just fine.
>
> I'm using that standard setup.cpp project to create a setup.dll that
> makes some registry edits during installation. Is there a reason why
> WM6 doesn't allow this?
rory.groves@gmail.com - 08 Aug 2007 17:14 GMT
On Aug 2, 12:27 pm, "Peter Foot [MVP]" <feedb...@nospam-inthehand.com>
wrote:
> Is your setup.dll signed?

Not that i know of. Is this a new requirement in WM6?
rory.groves@gmail.com - 08 Aug 2007 20:29 GMT
Additional info:

Using File Explorer through ActiveSync, i can literally see the files
getting installed while the CAB file is installing. Then, on the last
step, all the files get removed including the application folder. And
the CAB file states "installation completed successfully"
rory.groves@gmail.com - 11 Aug 2007 17:12 GMT
After much research, i discovered a single method in Setup.cpp which
caused the installation to roll back:

SHGetSpecialFolderPath(...) as used here:

(from Setup.cpp)

///////////////////////////////////////////////////////////
//PURPOSE : HANDLES TASKS DONE AT END OF INSTALLATION
///////////////////////////////////////////////////////////
codeINSTALL_EXIT Install_Exit(
   HWND hwndparent,LPCTSTR pszinstalldir,
   WORD cfaileddirs,WORD cfailedfiles,WORD cfailedregkeys,
   WORD cfailedregvals,
   WORD cfailedshortcuts)
{

    TCHAR _path [100];

    // Gets Program Files path
    SHGetSpecialFolderPath(NULL, _path, CSIDL_PROGRAM_FILES, 0);
<--------- This line is the culprit

This all works just fine in WM5 or prior. But no-go in WM6.  If i
comment out that single line, the installation will not rollback in
WM6.
rory.groves@gmail.com - 11 Aug 2007 18:14 GMT
Solution:

Change
 TCHAR _path [100];

to
 TCHAR _path[MAX_PATH];

Then this line works:
 SHGetSpecialFolderPath(NULL, _path, CSIDL_PROGRAM_FILES, 0);

That is, the installation does not roll back on WM6.
rory.groves@gmail.com - 02 Aug 2007 15:07 GMT
Update on this -- I tried installing to the WM6 Professional Emulator
and it did not install either. No folder or anything, but the system
said installation was successful.

??

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.