473,320 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Simple XCOPY operation as part of VS7 Setup project?

I am busy packaging our product as a standard Setup project in VS.NET that
uses
a bunch of merge modules (basically, a merge module for every key
infrastructure
component in our system).

Part of the installation needs to "dump" a bunch of files (third party
product's project
files) to the user's system. These files are transient in nature in that the
user may choose
to remove some of them over the lifetime of our application.

The problem I have is: If I put these files in a merge module like
everything else,
and the user removes one of the files after installation, Windows Installer
automatically
pops up and wants the user to point it to the original setup project so it
can "repair"
the installation, since files it installed are no longer present.

Does anyone know a way I can facilitate a simple XCOPY-like deployment of
the set
of files, but as part of the bigger setup project? I do not wish the Windows
Installer
to monitor when these specific files go missing, but checking the rest of
the installation
is OK.

Regards
Ryno
Jul 21 '05 #1
3 2060
How about writing a simple app to copy the files and
executing it from the install?

-----Original Message-----
I am busy packaging our product as a standard Setup project in VS.NET thatuses
a bunch of merge modules (basically, a merge module for every keyinfrastructure
component in our system).

Part of the installation needs to "dump" a bunch of files (third partyproduct's project
files) to the user's system. These files are transient in nature in that theuser may choose
to remove some of them over the lifetime of our application.
The problem I have is: If I put these files in a merge module likeeverything else,
and the user removes one of the files after installation, Windows Installerautomatically
pops up and wants the user to point it to the original setup project so itcan "repair"
the installation, since files it installed are no longer present.
Does anyone know a way I can facilitate a simple XCOPY- like deployment ofthe set
of files, but as part of the bigger setup project? I do not wish the WindowsInstaller
to monitor when these specific files go missing, but checking the rest ofthe installation
is OK.

Regards
Ryno
.

Jul 21 '05 #2
That's one option - but it would mean distributing the files in "raw" format
with the
distribution media, or archiving it into cab files (from where I am not too
sure
how to extract to a specified folder automatically without user
intervention)... it
would also complicate the build process unnecessarily. I was hoping for some
setting/twiddly bit thing somewhere that specifies that the installer should
not
care about the files after installation... ? If not, I suppose a manual
xcopy as a
custom action will have to do...

"AlexB" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
How about writing a simple app to copy the files and
executing it from the install?

-----Original Message-----
I am busy packaging our product as a standard Setup

project in VS.NET that
uses
a bunch of merge modules (basically, a merge module for

every key
infrastructure
component in our system).

Part of the installation needs to "dump" a bunch of files

(third party
product's project
files) to the user's system. These files are transient in

nature in that the
user may choose
to remove some of them over the lifetime of our

application.

The problem I have is: If I put these files in a merge

module like
everything else,
and the user removes one of the files after installation,

Windows Installer
automatically
pops up and wants the user to point it to the original

setup project so it
can "repair"
the installation, since files it installed are no longer

present.

Does anyone know a way I can facilitate a simple XCOPY-

like deployment of
the set
of files, but as part of the bigger setup project? I do

not wish the Windows
Installer
to monitor when these specific files go missing, but

checking the rest of
the installation
is OK.

Regards
Ryno
.

Jul 21 '05 #3
This can be done by setting conditions on the files that you do not want reinstalled.
To do this select the files in the Merge Module Project that you do not wish to be reinstalled, set the Transitive property to be true (This will cause the
condition to be reevaluted on the system during a reinstall). Then set the condition to be something that will fail on reinstall (for example a registry key you
have created not existing).
This will work if you have created the Merge Modules yourself as your post led me to believe, there is a way to accomplish this with pre packaged merge
modules but it is slightly more complicated.

--------------------
Todd Derksen
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| From: "Ryno Rijnsburger" <no****@hotmail.com>
| References: <#2**************@tk2msftngp13.phx.gbl> <01****************************@phx.gbl>
| Subject: Re: Simple XCOPY operation as part of VS7 Setup project?
| Date: Tue, 4 Nov 2003 13:36:53 +0200
| Lines: 68
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <Ov**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.general
| NNTP-Posting-Host: tbnb-109-87.telkomadsl.co.za 165.165.109.87
| Path: cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:114262
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| That's one option - but it would mean distributing the files in "raw" format
| with the
| distribution media, or archiving it into cab files (from where I am not too
| sure
| how to extract to a specified folder automatically without user
| intervention)... it
| would also complicate the build process unnecessarily. I was hoping for some
| setting/twiddly bit thing somewhere that specifies that the installer should
| not
| care about the files after installation... ? If not, I suppose a manual
| xcopy as a
| custom action will have to do...
|
| "AlexB" <an*******@discussions.microsoft.com> wrote in message
| news:01****************************@phx.gbl...
| > How about writing a simple app to copy the files and
| > executing it from the install?
| >
| >
| > >-----Original Message-----
| > >I am busy packaging our product as a standard Setup
| > project in VS.NET that
| > >uses
| > >a bunch of merge modules (basically, a merge module for
| > every key
| > >infrastructure
| > >component in our system).
| > >
| > >Part of the installation needs to "dump" a bunch of files
| > (third party
| > >product's project
| > >files) to the user's system. These files are transient in
| > nature in that the
| > >user may choose
| > >to remove some of them over the lifetime of our
| > application.
| > >
| > >The problem I have is: If I put these files in a merge
| > module like
| > >everything else,
| > >and the user removes one of the files after installation,
| > Windows Installer
| > >automatically
| > >pops up and wants the user to point it to the original
| > setup project so it
| > >can "repair"
| > >the installation, since files it installed are no longer
| > present.
| > >
| > >Does anyone know a way I can facilitate a simple XCOPY-
| > like deployment of
| > >the set
| > >of files, but as part of the bigger setup project? I do
| > not wish the Windows
| > >Installer
| > >to monitor when these specific files go missing, but
| > checking the rest of
| > >the installation
| > >is OK.
| > >
| > >Regards
| > >Ryno
| > >
| > >
| > >.
| > >
|
|
|
Jul 21 '05 #4

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

Similar topics

2
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically...
4
by: bob lambert | last post by:
Help I am trying to deploy to another pc a vb.net std 2002 windows form application. I am confused. I created a project - windows form I built form, compiled and debugged. I created a...
12
by: Alan M Dunsmuir | last post by:
Having completed the development of a VB Windows Form application using VB.NET 2003, I have attempted to install it on my back-up machine, which I recently upgraded to WinXPPro SP2, but which has...
4
by: Ryno Rijnsburger | last post by:
I am busy packaging our product as a standard Setup project in VS.NET that uses a bunch of merge modules (basically, a merge module for every key infrastructure component in our system). Part...
9
by: Charles Law | last post by:
Hi chaps I realise that this is a .NET group, but please don't shoot me down quite yet. I looked in the vb classic groups and there seems to be so little activity there that I was not hopeful of...
1
by: lizii | last post by:
At the moment my company have asked me to look into installations. We use pure .NET applications and although i have looked into installer programs (installshield...wise..etc) none of them are...
6
by: Jim M | last post by:
I've been distributing a fairly mature, very specific MS Access application to end users in small offices of colleges for several years now. This is a part-time venture and low volume operation-...
3
by: Liz | last post by:
I was intending to use an XCOPY install for a VS2005 C# WinForms app but when I copied the files and ran the app on a clean machine it failed when it needed Crystal Reports. Can you not use XCOPY...
4
by: Axel Dahmen | last post by:
Hi, I've created a few simple console tools. No .NET used at all, just STL. Now I want to just XCOPY them to another machine. But running them there yields a couple of errors in the application...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.