PDA

View Full Version : Web update error - cannot detect previous version



NewsArchive
03-08-2014, 11:56 AM
Hi Friedrich,

Debugging a client script. We are getting this error:

! Detect previous installation folder
Set Variable %_SB_INSTALLDIR% to FUNCTION:Detect Previous
Version("[PRODUCTGUID]")
If %_SB_ERRORCODE% Equals "0" Then
Display Message Box "The Web Update application failed to detect a
prev..." -- "Previous Version Detection Failed"
Exit Installation()
End

when it should start downloading the stub. Both the main install and
web updater have the same product GUID:

Installer Product GUID: {D794F180-CAC9-11E1-6784-00EA876C18BE}
Web updater Product GUID: {D794F180-CAC9-11E1-6784-00EA876C18BE}

and when the main installer is run, it adds this to the registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Lindersoft\WebUpdate\A pps\{D794F180-CAC9-11E1-6784-00EA876C18BE}

The LOCAL_VERSION is 4.10.001, LOCAL_CHECK is 0, LOCAL_LAST is 0.

The manifest online has:

[SB5UPDATE]
Version=4.11.002
Setup=WebUpdate.exe

I'll be poking at this, but if someone knows what the issue is, I'd
appreciate a nudge:)

--
Arnor Baldvinsson - Icetips Alta LLC

NewsArchive
03-08-2014, 11:56 AM
Arnor,

Is this a Windows 64-bit machine? If "Detect Previous Version..." returns 0
then the product is definitely not installed.

Perhaps the installer that initialized the web update feature was running in
64-bit mode (not recommended if it installed a 32-bit application) and the
web update package runs in another "bitness" mode now?

Friedrich

NewsArchive
03-08-2014, 11:57 AM
BTW, "Detect Previous Version..." checks the following key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Uninstall

Not:

HKEY_LOCAL_MACHINE\SOFTWARE\Lindersoft\WebUpdate\A pps\{}

Friedrich

NewsArchive
03-08-2014, 11:57 AM
Hi Friedrich,

> Is this a Windows 64-bit machine? If "Detect Previous Version..." returns 0
> then the product is definitely not installed.
>
> Perhaps the installer that initialized the web update feature was running in
> 64-bit mode (not recommended if it installed a 32-bit application) and the
> web update package runs in another "bitness" mode now?

What I have found is that the main install won't create/include the
uninstaller. I can't see any reason why not. We have this in the
UNINSTALL:
%_SB_INSTALLDIR%\Uninst_[PRODUCTNAME].exe
and:
%_SB_INSTALLDIR%\Uninst_[PRODUCTNAME].log

and the "Support Uninstall" is checked. The registry key for the
product GUID under windows/uninstall does NOT exist and the uninstaller
is NOT included in the install build:

File ID,File Name,Destination Folder,Source
Folder,Feature,Date,Time,Size (bytes),Version,CRC32,Options
00001,AUTOWAMR.exe,%_SB_INSTALLDIR%,D:\C9 Projects\WAMR System\WSIWAMR
Full Version,Always Install,2014/02/20,13:28:38,3459072,4.1.0.0,EC86AF95,
00002,WSIWAMR.exe,%_SB_INSTALLDIR%,D:\C9 Projects\WAMR System\WSIWAMR
Full Version,Always Install,2014/02/20,14:44:24,3645440,4.1.0.0,7775EFA3,
00003,CRC8.dll,%_SB_INSTALLDIR%,D:\C9 Projects\WAMR System\WSIWAMR Full
Version,Always Install,2012/05/11,20:29:44,61440,1.0.100.0,DAA8871F,
00004,WSIUBSIcon.ico,%_SB_INSTALLDIR%,D:\C9 Projects\WAMR System\WSIWAMR
Full Version,Always Install,2012/03/10,14:33:02,32038,,22E951B0,
00005,WSIWAMRSettings.xml,%_SB_INSTALLDIR%,D:\C9 Projects\WAMR
System\WSIWAMR Full Version,Always
Install,2014/02/20,14:44:30,770,,9AB63C81,
00006,wupdate.exe,%_SB_INSTALLDIR%,C:\Program Files
(x86)\Lindersoft\SetupBuilder 8 Developer\Lib,Always
Install,2013/10/18,15:34:33,223952,8.1.4210.0,24AF1708,

I'm stumped... What are we missing?

Best regards,

--
Arnor Baldvinsson - Icetips Alta LLC

NewsArchive
03-08-2014, 11:58 AM
Hi Friedrich,

> Perhaps the installer that initialized the web update feature was running in
> 64-bit mode (not recommended if it installed a 32-bit application) and the
> web update package runs in another "bitness" mode now?

Nope, it's set to 32bit.

I'm on build 8.1.4227

I can't see anything that may be wrong....

Best regards,


--
Arnor Baldvinsson - Icetips Alta LLC

NewsArchive
03-08-2014, 11:59 AM
Hi Friedrich,

> Is this a Windows 64-bit machine? If "Detect Previous Version..." returns 0
> then the product is definitely not installed.

This line:

Create Installation App & Log "[UNINSTALL_LOG]"

had been commented out for some reason. Un-commented it and we're back
in business! :)

Best regards,

--
Arnor Baldvinsson - Icetips Alta LLC

NewsArchive
03-08-2014, 11:59 AM
> This line:
>
> Create Installation App & Log "[UNINSTALL_LOG]"
>
> had been commented out for some reason. Un-commented it and we're back in
> business! :)

Perfect :)

Friedrich