Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. installer package

installer package

Scheduled Pinned Locked Moved C#
csharpdotnetalgorithmsquestion
11 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D DKalepu

    Hi all, i made an installer package (.msi file) for my C# windows application. But, whenever i try to install it on the other systems, it is saying "application failed to initialize properly"... After searching, i found that it works only on the machines where .net framework was installed.. Is it possible to include .net framework in my package & give it that to my client?? Any solutions plz............. Thanks in Advance. :)

    O Offline
    O Offline
    originSH
    wrote on last edited by
    #2

    How did you make the installer package? If it's via visual studio then right click the stup project and select 'properties'. Form there you have 'prerequisites' in there you can select what your setup depends on.

    D 1 Reply Last reply
    0
    • O originSH

      How did you make the installer package? If it's via visual studio then right click the stup project and select 'properties'. Form there you have 'prerequisites' in there you can select what your setup depends on.

      D Offline
      D Offline
      DKalepu
      wrote on last edited by
      #3

      Hi, thanks for the reply. yup, problem solved.. :-D and, how can i create desktop shortcut?? coz i didn't find any "create shortcut" option ..... :confused:

      M O 2 Replies Last reply
      0
      • D DKalepu

        Hi, thanks for the reply. yup, problem solved.. :-D and, how can i create desktop shortcut?? coz i didn't find any "create shortcut" option ..... :confused:

        M Offline
        M Offline
        Muammar
        wrote on last edited by
        #4

        just create a .lnk of the file you want to make the shortcut for and while installing, copy it to either the current user's desktop folder/start menu or to All users' desktop folder/start menu folder.


        Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

        D 1 Reply Last reply
        0
        • M Muammar

          just create a .lnk of the file you want to make the shortcut for and while installing, copy it to either the current user's desktop folder/start menu or to All users' desktop folder/start menu folder.


          Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

          D Offline
          D Offline
          DKalepu
          wrote on last edited by
          #5

          .lnk file ?? how to create that ? :confused:

          M 1 Reply Last reply
          0
          • D DKalepu

            .lnk file ?? how to create that ? :confused:

            M Offline
            M Offline
            Muammar
            wrote on last edited by
            #6

            Shortcut file:~ and store it as a file in the installation package, "That's what i usually do for installation"


            Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

            D 2 Replies Last reply
            0
            • D DKalepu

              Hi, thanks for the reply. yup, problem solved.. :-D and, how can i create desktop shortcut?? coz i didn't find any "create shortcut" option ..... :confused:

              O Offline
              O Offline
              originSH
              wrote on last edited by
              #7

              Under the "File System" view you should have various folders representing the file structure of your target machine. i.e. Application Folder User's Desktop User's Programs Menu If you wished to put a shortcut on the desktop you would select 'User's Desktop', then right click the details panel (which has Name|Type at the top) and select create shortcut. You can then select the included file you want to shortcut too. For anything outside of what your installing you'll need to make a shortcut as you normally would in windows and then include the file using Right Click then Add File.

              D 1 Reply Last reply
              0
              • O originSH

                Under the "File System" view you should have various folders representing the file structure of your target machine. i.e. Application Folder User's Desktop User's Programs Menu If you wished to put a shortcut on the desktop you would select 'User's Desktop', then right click the details panel (which has Name|Type at the top) and select create shortcut. You can then select the included file you want to shortcut too. For anything outside of what your installing you'll need to make a shortcut as you normally would in windows and then include the file using Right Click then Add File.

                D Offline
                D Offline
                DKalepu
                wrote on last edited by
                #8

                I have tried it already.... when i rightclicked on "user's desktop" there isn't any 'create shortcut' option.... instead, i hv createshort to user's desktop option: it is creating the shortcut for "user's desktop"...... :confused: :rolleyes: :((

                1 Reply Last reply
                0
                • M Muammar

                  Shortcut file:~ and store it as a file in the installation package, "That's what i usually do for installation"


                  Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

                  D Offline
                  D Offline
                  DKalepu
                  wrote on last edited by
                  #9

                  OMG! but how??? :-O :confused:

                  M 1 Reply Last reply
                  0
                  • M Muammar

                    Shortcut file:~ and store it as a file in the installation package, "That's what i usually do for installation"


                    Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

                    D Offline
                    D Offline
                    DKalepu
                    wrote on last edited by
                    #10

                    do u mean to say " using IWshRuntimeLibrary" ??

                    1 Reply Last reply
                    0
                    • D DKalepu

                      OMG! but how??? :-O :confused:

                      M Offline
                      M Offline
                      Muammar
                      wrote on last edited by
                      #11

                      I'm not sure how your application looks like but if you are intending to copy the shortcut file from the solution "not using an external DOS batch file" then add a reference of visual basic library to your code and use something like this code:

                                  Microsoft.VisualBasic.FileSystem.FileCopy("YourShortcut.lnk",System.Environment.SpecialFolder.DesktopDirectory+"\\YourShortcut.lnk");
                      

                      also take a look at your C:\Documents and Settings\All Users\Desktop folder and if you want to use this one, try something tricky like getting the drive letter on which windows is installed and concatenating it with the destination path

                      string strWindowsRoot = System.Environment.GetFolderPath(System.Environment.SpecialFolder.System).ToString().Substring(0, 3);
                      

                      I hope you get over it:)..


                      Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups