Results 1 to 8 of 8

Thread: [1.0/1.1] Deploying (MSI) my too also deploys a xxx.exe.config file? [C# 2003]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2003
    Posts
    308

    Question [1.0/1.1] Deploying (MSI) my too also deploys a xxx.exe.config file? [C# 2003]

    Not sure if this is normal or not but I created a deployment project for my tool (tool.exe) which was created using VSC# 2003 .Net 1.1 and after running the MSI (installing) there is a tool.exe.config file that also appears (I can also see it in primary outputs of the deployment project).

    If I delete the file after install the tool.exe still runs fine and I see no reason to keep it (I kind of liked that it was a one-file deployment) so I wanted to know a few things:
    - Is there a reason to keep this file post-install?
    - Is there a way to remove it from the outputs of my MSI package (deployment package)?
    Because I don't recall ever adding it before and I don't see anywhere I can remove it from the outputs of the project...

    Any information or help would be much appreciated...
    Thanks,

  2. #2
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Ubuntu Haters Club
    Posts
    405

    Re: [1.0/1.1] Deploying (MSI) my too also deploys a xxx.exe.config file? [C# 2003]

    If it is a one file deployment (ie. the setup only outputs one file), why don't you just distribute the executable (tool.exe) rather than the MSI.

    Unless of course you're doing some registry configuration/dll registering etc.
    » Twitter: @rudi_visser : Website: www.rudiv.se «

    If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2003
    Posts
    308

    Re: [1.0/1.1] Deploying (MSI) my too also deploys a xxx.exe.config file? [C# 2003]

    So I guess I can omit that one file and simply deploy the .exe then?

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [1.0/1.1] Deploying (MSI) my too also deploys a xxx.exe.config file? [C# 2003]

    The config file is where you can store configuration information. Normally there is no config file unless you've specifically added one or else you've done something that requires the IDE to add one in order to store some information. If the file is there then it's likely to be important unless you've created it, either implicitly or explicitly, and then later removed the need for it by removing the information stored in it from the application. If you're not sure then I'd suggest distributing it because your app may crash if it tries to use it and doesn't find it. You could post its contents here and we can try to assess whether it contains anything important.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2003
    Posts
    308

    Question Re: [1.0/1.1] Deploying (MSI) my too also deploys a xxx.exe.config file? [C# 2003]

    Well - I set the project settings to .NET 1.1 so I thought that might be it... The contents of the file are as follows

    Code:
    <?xml version="1.0"?>
    <configuration>
    	<startup>
    	<supportedRuntime version="v1.1.4322"/>
    	<requiredRuntime version="v1.1.4322" safemode="true"/></startup></configuration>
    What do you think?

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [1.0/1.1] Deploying (MSI) my too also deploys a xxx.exe.config file? [C# 2003]

    Like I said, there usually is no config file unless it's needed to store some important information. Without that your app will not know that it's not to run on a lower Framework. In that case it may run and error if that version is not present. You probably haven't seen an issue because that version is always present. You may not see an issue even if it wasn't but, then again, you might. Don't take the risk. Deploy the config file.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [1.0/1.1] Deploying (MSI) my too also deploys a xxx.exe.config file? [C# 2003]

    My guess is that the tool.exe.config file comes useful when there is a machine with both versions of the framework installed on it.

  8. #8
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [1.0/1.1] Deploying (MSI) my too also deploys a xxx.exe.config file? [C# 2003]

    Moved to Application Deployment

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width