473,498 Members | 703 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.NET Deployment - Checking for user-modified files

Hi all

I've written a program in VB.NET that allows the user to build quotes for installing shower enclosures. As part of the program, I've included a blank Access database. I've provided them with an interface where they can add their own clients to the database

When the user upgrades to a newer version of my program, I don't want the installer to overwrite the Access database file with my blank one again. How can I tell VB.NET to check to see if the file has been modified, and if so, not to overwrite it

Many thanks

Juggler at(@) sonic dot(.) net
Nov 20 '05 #1
6 3652
Well, I assume you are upgrading using a setup in vb.net 2003?

If so isn't there a property for the file whatever.mdb to not overwrite?

Of course from within VB.NET you have the system.io.fileinfo class to get
information on files... but that doesn't seem that it would do much good as
far as setup goes.

Check to see if you can't highlight the .MDB file in the setup and click
properties and set to not overwrite. don't have the IDE open at present but
that is where I would look.

HTH,

Shane

"Juggler" <an*******@discussions.microsoft.com> wrote in message
news:FE**********************************@microsof t.com...
Hi all,

I've written a program in VB.NET that allows the user to build quotes for installing shower enclosures. As part of the program, I've included a blank
Access database. I've provided them with an interface where they can add
their own clients to the database.
When the user upgrades to a newer version of my program, I don't want the installer to overwrite the Access database file with my blank one again. How
can I tell VB.NET to check to see if the file has been modified, and if so,
not to overwrite it?
Many thanks,

Juggler at(@) sonic dot(.) net

Nov 20 '05 #2
I'm using vb.net 2002

When I go to the File System Editor, highlight the file and select properties, I have the option to adjust

- Condition (seems to only check version/processor info on the computer being installed on
- Exclude (blanket exclude from installation
- Folder (where to install it
- Hidden (is it a hidden file
- PackageAs (not sure what this is for
- Permenent (whether or not to leave it during uninstallation
- ReadOnly (read only
- SharedLegacyFile (this might be it, but I don't really know what the help text is talking about
- SourcePath (file location
- System (is it a system file?
- TargetName (name of file
- Transitive (whether or not the installer should reevaluate the Condition property each installation
- Vital (whether a file is vital for installation or not

There must be an answer out there. It's like saving a user's preferences from version to version. Each time I release a new version of the program, I don't want the users to have to re-enter their info. I can work around the installation problem with preferences by using a text file for the user's preferences. When the program loads the splash screen, I check for the existance of the preferences text file. If it's not there, I can display a window to the user that asks for their preferences information (name, whether they want to print in color, etc.), and then write a text file

Thanks for any help that can be provided

Juggler (@)at sonic (.) ne

----- SStory wrote: ----

Well, I assume you are upgrading using a setup in vb.net 2003

If so isn't there a property for the file whatever.mdb to not overwrite

Of course from within VB.NET you have the system.io.fileinfo class to ge
information on files... but that doesn't seem that it would do much good a
far as setup goes

Check to see if you can't highlight the .MDB file in the setup and clic
properties and set to not overwrite. don't have the IDE open at present bu
that is where I would look

HTH

Shan

"Juggler" <an*******@discussions.microsoft.com> wrote in messag
news:FE**********************************@microsof t.com..
Hi all
I've written a program in VB.NET that allows the user to build quotes fo installing shower enclosures. As part of the program, I've included a blan
Access database. I've provided them with an interface where they can ad
their own clients to the database When the user upgrades to a newer version of my program, I don't want th installer to overwrite the Access database file with my blank one again. Ho
can I tell VB.NET to check to see if the file has been modified, and if so
not to overwrite it Many thanks
Juggler at(@) sonic dot(.) ne


Nov 20 '05 #3
Ot
In a similar situation, I did not deliver the default data as part of the
application, but instead built it from the application itself when it did
not exist. That is, the application itself checks for data existing and
builds the default template that way. You could include the default data
as an embedded resource and create it where you want when you want.
"Juggler" <an*******@discussions.microsoft.com> wrote in message
news:4F**********************************@microsof t.com...
I'm using vb.net 2002.

When I go to the File System Editor, highlight the file and select properties, I have the option to adjust:
- Condition (seems to only check version/processor info on the computer being installed on) - Exclude (blanket exclude from installation)
- Folder (where to install it)
- Hidden (is it a hidden file)
- PackageAs (not sure what this is for)
- Permenent (whether or not to leave it during uninstallation)
- ReadOnly (read only)
- SharedLegacyFile (this might be it, but I don't really know what the help text is talking about) - SourcePath (file location)
- System (is it a system file?)
- TargetName (name of file)
- Transitive (whether or not the installer should reevaluate the Condition property each installation) - Vital (whether a file is vital for installation or not)

There must be an answer out there. It's like saving a user's preferences from version to version. Each time I release a new version of the program,
I don't want the users to have to re-enter their info. I can work around
the installation problem with preferences by using a text file for the
user's preferences. When the program loads the splash screen, I check for
the existance of the preferences text file. If it's not there, I can
display a window to the user that asks for their preferences information
(name, whether they want to print in color, etc.), and then write a text
file.
Thanks for any help that can be provided!

Juggler (@)at sonic (.) net

----- SStory wrote: -----

Well, I assume you are upgrading using a setup in vb.net 2003?

If so isn't there a property for the file whatever.mdb to not overwrite?
Of course from within VB.NET you have the system.io.fileinfo class to get information on files... but that doesn't seem that it would do much good as far as setup goes.

Check to see if you can't highlight the .MDB file in the setup and click properties and set to not overwrite. don't have the IDE open at present but that is where I would look.

HTH,

Shane

"Juggler" <an*******@discussions.microsoft.com> wrote in message
news:FE**********************************@microsof t.com...
> Hi all,
>> I've written a program in VB.NET that allows the user to build
quotes for
installing shower enclosures. As part of the program, I've included a blank Access database. I've provided them with an interface where they can add their own clients to the database. >> When the user upgrades to a newer version of my program, I don't
want the
installer to overwrite the Access database file with my blank one again. How can I tell VB.NET to check to see if the file has been modified, and if so, not to overwrite it? >> Many thanks,
>> Juggler at(@) sonic dot(.) net


Nov 20 '05 #4
I like this idea best.

Throw it on the CD... Require them to insert CD first time or whatever and
your program checks to see if it is there using
the fileinfo class and then if not copies it from CD to disk..

Seems the easiest although setup may have a way.. I don't know

Shane

"Ot" <ur***@tds.invalid (use net)> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
In a similar situation, I did not deliver the default data as part of the
application, but instead built it from the application itself when it did
not exist. That is, the application itself checks for data existing and
builds the default template that way. You could include the default data
as an embedded resource and create it where you want when you want.
"Juggler" <an*******@discussions.microsoft.com> wrote in message
news:4F**********************************@microsof t.com...
I'm using vb.net 2002.

When I go to the File System Editor, highlight the file and select properties, I have the option to adjust:

- Condition (seems to only check version/processor info on the computer

being installed on)
- Exclude (blanket exclude from installation)
- Folder (where to install it)
- Hidden (is it a hidden file)
- PackageAs (not sure what this is for)
- Permenent (whether or not to leave it during uninstallation)
- ReadOnly (read only)
- SharedLegacyFile (this might be it, but I don't really know what the

help text is talking about)
- SourcePath (file location)
- System (is it a system file?)
- TargetName (name of file)
- Transitive (whether or not the installer should reevaluate the

Condition property each installation)
- Vital (whether a file is vital for installation or not)

There must be an answer out there. It's like saving a user's preferences

from version to version. Each time I release a new version of the program,
I don't want the users to have to re-enter their info. I can work around
the installation problem with preferences by using a text file for the
user's preferences. When the program loads the splash screen, I check for
the existance of the preferences text file. If it's not there, I can
display a window to the user that asks for their preferences information
(name, whether they want to print in color, etc.), and then write a text
file.

Thanks for any help that can be provided!

Juggler (@)at sonic (.) net

----- SStory wrote: -----

Well, I assume you are upgrading using a setup in vb.net 2003?

If so isn't there a property for the file whatever.mdb to not

overwrite?

Of course from within VB.NET you have the system.io.fileinfo class

to get
information on files... but that doesn't seem that it would do much

good as
far as setup goes.

Check to see if you can't highlight the .MDB file in the setup and

click
properties and set to not overwrite. don't have the IDE open at

present but
that is where I would look.

HTH,

Shane

"Juggler" <an*******@discussions.microsoft.com> wrote in message
news:FE**********************************@microsof t.com...
> Hi all,
>> I've written a program in VB.NET that allows the user to build

quotes for
installing shower enclosures. As part of the program, I've included

a blank
Access database. I've provided them with an interface where they

can add
their own clients to the database.
>> When the user upgrades to a newer version of my program, I don't
want the
installer to overwrite the Access database file with my blank one

again. How
can I tell VB.NET to check to see if the file has been modified,

and if so,
not to overwrite it?
>> Many thanks,
>> Juggler at(@) sonic dot(.) net



Nov 20 '05 #5
I think I'm going to try including the .mdb file with the program, but in a sub-folder. The program will check to see if the .mdb file exists where it should during normal operation, and if it isn't there (i.e. they just installed the program), it will copy the .mdb file from the sub-directory and put it in the proper place before it calls it for the first time

Hopefully, it will all work out. It still seems silly that there isn't a simple setting in vb.net that checks whether or not a file has been modified since the last version update, and to leave it alone if the user has modified it.

Juggle

----- SStory wrote: ----

I like this idea best

Throw it on the CD... Require them to insert CD first time or whatever an
your program checks to see if it is there usin
the fileinfo class and then if not copies it from CD to disk.

Seems the easiest although setup may have a way.. I don't kno

Shan

"Ot" <ur***@tds.invalid (use net)> wrote in messag
news:%2******************@tk2msftngp13.phx.gbl..
In a similar situation, I did not deliver the default data as part of th
application, but instead built it from the application itself when it di
not exist. That is, the application itself checks for data existing an
builds the default template that way. You could include the default dat
as an embedded resource and create it where you want when you want
"Juggler" <an*******@discussions.microsoft.com> wrote in messag news:4F**********************************@microsof t.com..
I'm using vb.net 2002
When I go to the File System Editor, highlight the file and selec
properties, I have the option to adjust - Condition (seems to only check version/processor info on the compute being installed on
- Exclude (blanket exclude from installation
- Folder (where to install it
- Hidden (is it a hidden file
- PackageAs (not sure what this is for
- Permenent (whether or not to leave it during uninstallation
- ReadOnly (read only
- SharedLegacyFile (this might be it, but I don't really know what th

help text is talking about
- SourcePath (file location
- System (is it a system file?
- TargetName (name of file
- Transitive (whether or not the installer should reevaluate th

Condition property each installation
- Vital (whether a file is vital for installation or not
There must be an answer out there. It's like saving a user's preference

from version to version. Each time I release a new version of the program
I don't want the users to have to re-enter their info. I can work aroun
the installation problem with preferences by using a text file for th
user's preferences. When the program loads the splash screen, I check fo
the existance of the preferences text file. If it's not there, I ca
display a window to the user that asks for their preferences informatio
(name, whether they want to print in color, etc.), and then write a tex
file Thanks for any help that can be provided
Juggler (@)at sonic (.) ne
----- SStory wrote: ----
Well, I assume you are upgrading using a setup in vb.net 2003
If so isn't there a property for the file whatever.mdb to no overwrite Of course from within VB.NET you have the system.io.fileinfo clas

to ge
information on files... but that doesn't seem that it would do muc

good a
far as setup goes
Check to see if you can't highlight the .MDB file in the setup an

clic
properties and set to not overwrite. don't have the IDE open a

present bu
that is where I would look
HTH
Shan
"Juggler" <an*******@discussions.microsoft.com> wrote in messag

news:FE**********************************@microsof t.com...
Hi all,
I've written a program in VB.NET that allows the user to build

quotes for
installing shower enclosures. As part of the program, I've included

a blank
Access database. I've provided them with an interface where they

can add
their own clients to the database.
When the user upgrades to a newer version of my program, I don't
want the
installer to overwrite the Access database file with my blank one

again. How
can I tell VB.NET to check to see if the file has been modified,

and if so,
not to overwrite it?
Many thanks,
Juggler at(@) sonic dot(.) net
>>>>

Nov 20 '05 #6
There may be... I haven't been using it enough to do formal updates yet.
Simple updates are send them the new exe and they copy over the old one.
Pretty neat, but...

Maybe if there is a way someone at Microsoft or some other guru will respond
and tell us both.
Sorry I don't know more.

Shane

"Juggler" <an*******@discussions.microsoft.com> wrote in message
news:61**********************************@microsof t.com...
I think I'm going to try including the .mdb file with the program, but in a sub-folder. The program will check to see if the .mdb file exists where it
should during normal operation, and if it isn't there (i.e. they just
installed the program), it will copy the .mdb file from the sub-directory
and put it in the proper place before it calls it for the first time.
Hopefully, it will all work out. It still seems silly that there isn't a simple setting in vb.net that checks whether or not a file has been modified
since the last version update, and to leave it alone if the user has
modified it.
Juggler

----- SStory wrote: -----

I like this idea best.

Throw it on the CD... Require them to insert CD first time or whatever and your program checks to see if it is there using
the fileinfo class and then if not copies it from CD to disk..

Seems the easiest although setup may have a way.. I don't know

Shane

"Ot" <ur***@tds.invalid (use net)> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
> In a similar situation, I did not deliver the default data as part of the > application, but instead built it from the application itself when it did > not exist. That is, the application itself checks for data existing and > builds the default template that way. You could include the default data > as an embedded resource and create it where you want when you want.
>>> "Juggler" <an*******@discussions.microsoft.com> wrote in message > news:4F**********************************@microsof t.com...
>> I'm using vb.net 2002.
>>>> When I go to the File System Editor, highlight the file and select
> properties, I have the option to adjust:
>>>> - Condition (seems to only check version/processor info on the
computer > being installed on)
>> - Exclude (blanket exclude from installation)
>> - Folder (where to install it)
>> - Hidden (is it a hidden file)
>> - PackageAs (not sure what this is for)
>> - Permenent (whether or not to leave it during uninstallation)
>> - ReadOnly (read only)
>> - SharedLegacyFile (this might be it, but I don't really know what
the > help text is talking about)
>> - SourcePath (file location)
>> - System (is it a system file?)
>> - TargetName (name of file)
>> - Transitive (whether or not the installer should reevaluate the

> Condition property each installation)
>> - Vital (whether a file is vital for installation or not)
>>>> There must be an answer out there. It's like saving a user's
preferences > from version to version. Each time I release a new version of the program, > I don't want the users to have to re-enter their info. I can work around > the installation problem with preferences by using a text file for the > user's preferences. When the program loads the splash screen, I check for > the existance of the preferences text file. If it's not there, I can > display a window to the user that asks for their preferences information > (name, whether they want to print in color, etc.), and then write a text > file.
>>>> Thanks for any help that can be provided!
>>>> Juggler (@)at sonic (.) net
>>>> ----- SStory wrote: -----
>>>> Well, I assume you are upgrading using a setup in vb.net
2003? >>>> If so isn't there a property for the file whatever.mdb to not > overwrite?
>>>> Of course from within VB.NET you have the
system.io.fileinfo class > to get
>> information on files... but that doesn't seem that it would
do much > good as
>> far as setup goes.
>>>> Check to see if you can't highlight the .MDB file in the
setup and > click
>> properties and set to not overwrite. don't have the IDE open
at > present but
>> that is where I would look.
>>>> HTH,
>>>> Shane
>>>> "Juggler" <an*******@discussions.microsoft.com> wrote in
message >> news:FE**********************************@microsof t.com...
>>> Hi all,
>>>> I've written a program in VB.NET that allows the user to build

> quotes for
>> installing shower enclosures. As part of the program, I've

included > a blank
>> Access database. I've provided them with an interface where
they can
> add
>> their own clients to the database.
>>>> When the user upgrades to a newer version of my program, I don't > want the
>> installer to overwrite the Access database file with my blank

one > again. How
>> can I tell VB.NET to check to see if the file has been

modified, and
> if so,
>> not to overwrite it?
>>>> Many thanks,
>>>> Juggler at(@) sonic dot(.) net
>>>>>>>>

Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1333
by: david | last post by:
Hi, I have some questions about visual studio deployment. I could not find a way to handle two things, one is how to show a page to let user choose if they like the executable file run after...
0
1309
by: Mec | last post by:
Some time ago I created a windows forms application with a deployment project. I was always able to build the deployment package after changing the windows forms application, but somehow something...
1
4462
by: Jo | last post by:
I am having a real problem with the Launch conditions in VS .NET and can only come to the conclusion that it is a bug. It states quite emphatically in the MSDN that Launch Conditions WILL be...
1
1194
by: dawn | last post by:
Hi, I've deployed the app I wrote through an Install Wizard project. I place a link on the user's desktop, and in the program menu, using "shortcut to primary output....". When I click the icons...
4
3496
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
1
650
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
1580
by: Scanner2001 | last post by:
I have a web service and a deployment project. Inside the deployment project, is a custom action to create some database related items such as stored procedures. I have this packaged as an msi, and...
1
2106
by: ComputerGuyCJ | last post by:
I have an application that I've used click-once deployment to publish out to a shared network path. From there I installed the app on a few client machines, including my own. Since then I published...
6
4042
by: andrewbb | last post by:
I want to deploy a service with a windows app and the setup program must conform to the Vista certification requirements. Can that be done with the standard .net setup project? Assuming cost is...
3
3621
by: Sonu | last post by:
Hi All - I'm trying to create a setup project using the Setup deployment project option from Visual Studio 05. Everything works great except I cannot find how start the application once user...
0
6998
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7163
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6884
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7375
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4904
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4586
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.