PDA

View Full Version : SF5.0.1.6 the error still exist (Never overwrite existing file)


k_scampi
02-18-2002, 05:55 AM
Meanwhile I have try it with the version 5.0.1.6, but the problem still exist!!!

here the problem:
If the user change the setup-destination path
e.g. to c:\program files\myprog\
(important! ending with backslash)

and the properties of the dest.file is:
'Install file to this location:'
= %AppDir%\dll

'If file already exists:'
= Never overwrite existing file

in this case, the file is overwritten even though the file is existing.

I think, SF generates the full installation path to c:\program files\myprog\\dll
(here double backslash) and the internal function for checking an existing file
can't work with this double backslash.

How can I solve this problem?


best regards

Karl Scampi

Mark
02-18-2002, 12:16 PM
Hi,

Are you sure that the file is being overwritten? How are you testing this?

Perhaps you could generate a LOG FILE (Settings -> General Design -> Settings Tab) and then see what the log file reports about that specific file. Please post that section of the log file.

mark.

k_scampi
02-19-2002, 07:20 AM
Hi Mark,

I am really sure that this problem exist.
I test it as follows:

1.) I make a first installation
- Instpath = C:\program files\fibu\
- in the mainpath an exe-file
- in the subfolder (Databases) a mdb-file
now, I insert some records into the database

2.) I make a second installation
- Instpath = C:\program files\fibu\
now, I look into the database and the database is empty.

the following inst.log show the problem:

Setup Factory 5.0 Installation Log
==================================
Date/Time: 19-Feb-02 02:56:31 PM

[Execute Commands 0]

[File Operations 0]

[Execute Commands 1]

[File Operations 1]

[Installing from Archive]
C:\Programme\FIBU\fibu.exe (Installed)
C:\Programme\FIBU\\Databases\db1.mdb (Installed)

[Installing External]

[Register Fonts]

[File Registration]

[Uninstall]
C:\WINDOWS\iun507.exe

[Registry Commands]

[Text File Commands]

[INI File Commands]

[Shortcut Commands]

[Program Icons]
C:\Windows\Desktop\fibu.exe.lnk

[Execute Commands 2]

[File Operations 2]

[Execute Commands 3]

[File Operations 3]

Setup completed normally.


Setup Factory 5.0 Installation Log
==================================
Date/Time: 19-Feb-02 02:57:01 PM

[Execute Commands 0]

[File Operations 0]

[Execute Commands 1]

[File Operations 1]

[Installing from Archive]
C:\Programme\FIBU\fibu.exe (Installed)
C:\Programme\FIBU\\Databases\db1.mdb (Installed)

[Installing External]

[Register Fonts]

[File Registration]

[Uninstall]
C:\WINDOWS\iun507.exe

[Registry Commands]

[Text File Commands]

[INI File Commands]

[Shortcut Commands]

[Program Icons]
C:\Windows\Desktop\fibu.exe.lnk

[Execute Commands 2]

[File Operations 2]

[Execute Commands 3]

[File Operations 3]

Setup completed normally.


best regards

Karl Scampi

Originally posted by Mark:
Hi,

Are you sure that the file is being overwritten? How are you testing this?

Perhaps you could generate a LOG FILE (Settings -> General Design -> Settings Tab) and then see what the log file reports about that specific file. Please post that section of the log file.

mark.

Mark
02-19-2002, 08:29 AM
Hi,

Perhaps you could send me your project file. Send it to: mark@indigorose.com .

mark.

dan37_123
02-20-2002, 05:46 AM
I routinely do this type of stuff.
I have two major type of installations:
1. Typical and
2. Upgrade

In Typical i copy my ini file.
In Upgrade, i should not copy my file, so in my archive i set the file to-->never over write an exisinting file.

Then i do a query for all the sections in my ini file and then write the values or sections if they are missing, else modify the ini file accordingly.

k_scampi
02-20-2002, 06:36 AM
Hi,

that is a good idea, but in my case the file is an database.
I can not guarantee, that the user select the right installation-option. If the user select the wrong option, the data will be lost.

meanwhile, we have recognize that the problem exists only in the operation system Windows95 and Windows98, WinNT and Windows2000 works properly.

Sincerely,

Karl Scampi

Jean
02-20-2002, 08:27 AM
I am ok now

[This message has been edited by Jean (edited 02-20-2002).]

k_scampi
02-20-2002, 08:45 AM
Hi Jean,

I tested it with some Win95 and Win98(german Version) PCs.
The version of SetupFactory is 5.0.1.6
The installation-path must be end with backslash (e.g. c:\program files\fibu\)

Have you test it in a similar constellation?

Thankyou

Karl Scampi