installation path issue in setup file-VBForums
Results 1 to 11 of 11

Thread: installation path issue in setup file

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2009
    Location
    Watch Window(Shift+f9)
    Posts
    1,771

    Question installation path issue in setup file

    i have made setup file . and during installation , i always want to install my C# application .in programfiles .i
    don't want to install inside C:\Program Files (x86)\ .but when i run the setup and see the path by wright click .When
    it creates shortcut at desktop .it shows always this path C:\Program Files (x86)\ .i have been using 64 bit microprocessor. as well as 64 bit os windows 7 .
    then why it keeps all the installation file inside the C:\Program Files (x86)\ why not C:\Program Files \
    let me know please .any help would be highly appreciated .

  2. #2
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,175

    Re: installation path issue in setup file

    Some folder in windows are marked by windows as special folders. Program Files is just one of them.
    Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
    save a blobFileStreamDataTable To Text Filemy blog

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2009
    Location
    Watch Window(Shift+f9)
    Posts
    1,771

    Re: installation path issue in setup file

    it is not conviencing Answer . question is something other . question is if we are using 64 bits microprocessor . together with this operating System is also 64 bit as well .normally if program is compiled for 64 bit .it needs to install in c:\Program Files instead of C:\Program Files (x86) .so why it is not installing in c:\Program Files folder ?.
    how i will no it is compiled for 64 bit microprocessor ?.

  4. #4
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    86,138

    Re: installation path issue in setup file

    What is the target platform for your project? If it's x86 then your app will be 32-bit and will be installed with the other 32-bit applications. If it's Any CPU then it will still be a 32-bit application if you're using VS 2012 and you have the 'Prefer 32-bit' box checked. Otherwise it should be a 64-bit application on 64-bit systems.

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2009
    Location
    Watch Window(Shift+f9)
    Posts
    1,771

    Re: installation path issue in setup file

    Target platform is 64 bit applications .but it is giving following warning message .
    Possible problem detected while building assembly 'Test': Referenced assembly 'mscorlib.dll' targets a different processor Test
    Possible problem detected while building assembly 'Test': Referenced assembly 'System.Data.dll' targets a different processor Test
    Two or more objects have the same target location ('[targetdir]\test.exe') C:\Test\Setup\Setup.vdproj Setup
    Two or more objects have the same target location ('[targetdir]\test.exe') C:\Test\Setup\Setup.vdproj Setup

  6. #6
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,175

    Re: installation path issue in setup file

    Is it possible for you to include this line of code in your application?

    c# Code:
    1. Console.WriteLine( "SizeOf IntPtr is: {0}", IntPtr.Size );

    Please report on the value that the line output!
    Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
    save a blobFileStreamDataTable To Text Filemy blog

  7. #7
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    86,138

    Re: installation path issue in setup file

    Quote Originally Posted by firoz.raj View Post
    Target platform is 64 bit applications
    So, you're saying that the target platform is x64?

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  8. #8

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2009
    Location
    Watch Window(Shift+f9)
    Posts
    1,771

    Re: installation path issue in setup file

    So, you're saying that the target platform is x64?
    Yes,it is x64 .

    Console.WriteLine( "SizeOf IntPtr is: {0}", IntPtr.Size );
    Please report on the value that the line output!
    it is showing 8 .
    Last edited by firoz.raj; May 4th, 2013 at 02:19 AM.

  9. #9
    Web developer Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    11,476

    Re: installation path issue in setup file

    Quote Originally Posted by firoz.raj View Post
    Yes,it is x64 .
    For a 64bit operating system the "Program Files" is the default folder (just like it is on the 32bit operating system). However, on the 64bit versions of Windows there is also a folder called "Program Files (x86)"which, is you would install application which are 32bit applications/ made for the 32bit version of the operating system.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    Please consider giving me some rep points if I help you a lot.
    DON'T BUMP YOUR POSTS!!! Links to my code examples can now be found on my website: My websites
    Please rate my post if you find it helpful!
    Technology is a dangerous thing in the hands of an idiot! I am that idiot.

  10. #10

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2009
    Location
    Watch Window(Shift+f9)
    Posts
    1,771

    Re: installation path issue in setup file

    but why when i build 64 bit Application .why it says the following .
    Target platform is 64 bit applications .but it is giving following warning message .
    Possible problem detected while building assembly 'Test': Referenced assembly 'mscorlib.dll' targets a different processor Test
    Possible problem detected while building assembly 'Test': Referenced assembly 'System.Data.dll' targets a different processor Test
    Two or more objects have the same target location ('[targetdir]\test.exe') C:\Test\Setup\Setup.vdproj Setup
    Two or more objects have the same target location ('[targetdir]\test.exe') C:\Test\Setup\Setup.vdproj Setup

  11. #11
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: installation path issue in setup file

    Does the application necessarily need to be a 64bit application? What's wrong with x86?
    Delete it. They just clutter threads anyway.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.