PC Review


Reply
Thread Tools Rate Thread

Simple XCOPY operation as part of VS7 Setup project?

 
 
Ryno Rijnsburger
Guest
Posts: n/a
 
      3rd Nov 2003
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


 
Reply With Quote
 
 
 
 
AlexB
Guest
Posts: n/a
 
      3rd Nov 2003
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
>
>
>.
>

 
Reply With Quote
 
 
 
 
Ryno Rijnsburger
Guest
Posts: n/a
 
      4th Nov 2003
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" <(E-Mail Removed)> wrote in message
news:01dc01c3a22e$57c3a220$(E-Mail Removed)...
> 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
> >
> >
> >.
> >



 
Reply With Quote
 
Todd Derksen [MSFT]
Guest
Posts: n/a
 
      5th Nov 2003
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" <(E-Mail Removed)>
| References: <#(E-Mail Removed)> <01dc01c3a22e$57c3a220$(E-Mail Removed)>
| 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: <(E-Mail Removed)>
| 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!TK2MSFTNGP08.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" <(E-Mail Removed)> wrote in message
| news:01dc01c3a22e$57c3a220$(E-Mail Removed)...
| > 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
| > >
| > >
| > >.
| > >
|
|
|


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do setup vs7 not to build everytime I start debug R.A. Microsoft C# .NET 2 11th Nov 2004 05:05 PM
vs7 Dave Microsoft Dot NET Framework 0 28th Mar 2004 10:41 PM
vs7 autoformat - can you stop it RA Microsoft ASP .NET 0 10th Mar 2004 04:13 PM
DXImageTransform and vs7 editor problems RA Microsoft ASP .NET 0 24th Feb 2004 06:06 PM
GDI_DRIVER Driver compilation with VS7.1 IDE Nadav Windows XP Drivers 2 11th Jan 2004 01:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:28 PM.