Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: COPYFLG_NO_OVERWRITE problem

COPYFLG_NO_OVERWRITE problem 3 years, 6 months ago #436

Hi,

I'm building and installation including an sqlite database. Even if I set the flag COPYFLG_NO_OVERWRITE, when a user installs an update from me the database is overwritten. What is the best way round this?

Thanks

Mike White

Re:COPYFLG_NO_OVERWRITE problem 3 years, 6 months ago #437

  • nick_tg
  • OFFLINE
  • Moderator
  • Karma: 4
Hi,

After a search, it seems that is a problem in the windows mobile5 installer. One workaround is to use a setupdll.dll to make the check, and if the file is present, then do not install the new one.

It isn't to hard to make such a dll. In the install_init check if the file exists and if so, rename it. Let the installation continue, and in the install_exit delete the installed file and rename back the file to the desired name.

Regards,
Nick Protopapas

Re:COPYFLG_NO_OVERWRITE problem 3 years, 6 months ago #444

Hi Nick,

thanks for the reply. I coded round it - seemed simpler than getting into a DLL.

By the way, this flag was failing on an install to a WM6 Pro. Emulator.

Mike
  • Page:
  • 1
Time to create page: 0.17 seconds