Solved

Word + Deployment + How to create installation procedure

Posted on 2004-09-17
19
1,064 Views
Last Modified: 2012-05-05
I was wondering how I go about producing the little installation box to deploy my program to other users.  I have my program calling word 2002 and when I just move the .exe to another computer it doesn't work.  
0
Comment
Question by:computerg33k
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 6
  • 3
19 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 12085887
You cannot distribute Word as part of your application.

Word needs to be installed separately before you can get your application working.
0
 
LVL 4

Author Comment

by:computerg33k
ID: 12085911
i know this--i said my app USES word and i need to access word from vb--which means that i need to include the resources for word.  i need to know how to do a setup project.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 12086767
That is exactly what I meant. Word cannot be packaged with your application. You have to ask the user to install it separetly.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Author Comment

by:computerg33k
ID: 12086784
alright--now read--i don't want to package word--the user already has it on their computer.  my app USES--see--USES word and a document is created.  however--unless i package the resources that vb.net needs inorder to open word--it won't open it.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 12086895
Sorry but your question was not clear at all. You were asking about installing app to other PC. Forget it. Lets continue!

Have you delivered the Word interop with your application? See http://support.microsoft.com/default.aspx?scid=kb;en-us;304661&Product=vbNET
0
 
LVL 4

Expert Comment

by:gdexter
ID: 12086942
Create a new Deployment  project in VS.Net. Make sure that the Interop Assemblies (Interop.Word.dll) are included. This will create an MSI file that you can run on the client to install the program.

If you want to deploy on the network make sure that the Interop files are in the same folder as the executable and create a shortcut for the user to the network exe.
You may have to adjust the .Net security permissions for this to work.(either full rust on the network or trust the assembly) these wizards are available through Administrative Tools
0
 
LVL 4

Author Comment

by:computerg33k
ID: 12087146
gdexter--could you possibly walk me through the creating the deployment project?
0
 
LVL 4

Expert Comment

by:gdexter
ID: 12087476
Select File->Add project->New Project from the file menu
In the dialogue provided select Setup and Deployment Project (under project types)

You may just want to use the Setup wizard at first.
Select Windows application in the wizard and continue
Select Primary Output from your Application
Select any additional Config file specific to you application (optional)
Click Finish

This will create a new project under your solution:
Look in the Detected Dependecies and Make sure that Interop.Word is there.
Thats it.

You can find the MSI file that was created in the Setup Projects Debug or Release folder
double click the MSI and everything will ber installed.




0
 
LVL 4

Author Comment

by:computerg33k
ID: 12087543
alright--did just as you said, but there wasn't anything in the debug or release folder.  
0
 
LVL 4

Author Comment

by:computerg33k
ID: 12087561
i clicked every check box--would that cause a problem--i also selected all of the references for the additional files to add.  I even did a search for msi and nothing came up for this project.
0
 
LVL 4

Accepted Solution

by:
gdexter earned 125 total points
ID: 12087574
Sorry you need to Build the Project first
Righ Click on the Project and select build
0
 
LVL 4

Author Comment

by:computerg33k
ID: 12102435
Sorry it took so long for me to accept--by the way--when I built the project, I got a ton of errors--is this normal?
0
 
LVL 4

Expert Comment

by:gdexter
ID: 12102582
Could you Post the Error Messages?
I have never encountered any errors during the build of deployment project...
0
 
LVL 4

Author Comment

by:computerg33k
ID: 12102667
the following files may have dependencies that cannot be termined automatically.  Please confirm that all dependencies have been added to the project.
c:/programfiles/commonfiles/microsoftshared/office10/mso.dll
c:/windows/system32/scrrun.dll
c:/windows/system32/shdocvw.dll
0
 
LVL 4

Author Comment

by:computerg33k
ID: 12102707
The errors above happen right after I add the project and before I build the setup project--The errors below are shown after I build the setup project:

C:\Documents and Settings\Excel\My Documents\Visual Studio Projects\Job Tracker\Job Tracker.vdproj Two or more objects have the same target location ('[targetdir]\microsoft.office.interop.word.dll')

C:\Documents and Settings\Excel\My Documents\Visual Studio Projects\Job Tracker\Job Tracker.vdproj Two or more objects have the same target location ('[targetdir]\microsoft.office.interop.word.dll')

C:\Documents and Settings\Excel\My Documents\Visual Studio Projects\Job Tracker\Job Tracker.vdproj Two or more objects have the same target location ('[targetdir]\interop.word.dll')

C:\Documents and Settings\Excel\My Documents\Visual Studio Projects\Job Tracker\Job Tracker.vdproj Two or more objects have the same target location ('[targetdir]\interop.word.dll')

C:\Documents and Settings\Excel\My Documents\Visual Studio Projects\Job Tracker\Job Tracker.vdproj Two or more objects have the same target location ('[targetdir]\interop.scripting.dll')

C:\Documents and Settings\Excel\My Documents\Visual Studio Projects\Job Tracker\Job Tracker.vdproj Two or more objects have the same target location ('[targetdir]\interop.scripting.dll')

C:\Documents and Settings\Excel\My Documents\Visual Studio Projects\Job Tracker\Job Tracker.vdproj Two or more objects have the same target location ('[targetdir]\interop.microsoft.office.core.dll')

C:\Documents and Settings\Excel\My Documents\Visual Studio Projects\Job Tracker\Job Tracker.vdproj Two or more objects have the same target location ('[targetdir]\interop.microsoft.office.core.dll')

C:\Documents and Settings\Excel\My Documents\Visual Studio Projects\Job Tracker\Job Tracker.vdproj Two or more objects have the same target location ('[targetdir]\axinterop.shdocvw.dll')

C:\Documents and Settings\Excel\My Documents\Visual Studio Projects\Job Tracker\Job Tracker.vdproj Two or more objects have the same target location ('[targetdir]\axinterop.shdocvw.dll')

C:\Documents and Settings\Excel\My Documents\Visual Studio Projects\Job Tracker\Job Tracker.vdproj This setup does not contain the .NET Framework which must be installed on the target machine by running dotnetfx.exe before this setup will install. You can find dotnetfx.exe on the Visual Studio .NET 'Windows Components Update' media. Dotnetfx.exe can be redistributed with your setup.

C:\Documents and Settings\Excel\My Documents\Visual Studio Projects\Job Tracker\Job Tracker.vdproj 'shdocvw.dll' should be excluded because its source file 'C:\WINDOWS\System32\shdocvw.dll' is under Windows System File Protection.

C:\Documents and Settings\Excel\My Documents\Visual Studio Projects\Job Tracker\Job Tracker.vdproj 'scrrun.dll' should be excluded because its source file 'C:\WINDOWS\System32\scrrun.dll' is under Windows System File Protection.
0
 
LVL 4

Author Comment

by:computerg33k
ID: 12102976
alrighty--i fixed all the problems except for including .net framework--how do i go about doing that?
0
 
LVL 4

Expert Comment

by:gdexter
ID: 12103580
You can only do that with bootstapper techinique that I have never used. Usually I just include a copy of the DotNetFx.exe with the package and instruct the user to run that setup first.

I know in the new version of VS 2005 the bootstrapper functionality has been included.
0
 
LVL 4

Author Comment

by:computerg33k
ID: 12103793
Ok....now I downloaded DotNetFx.exe and then I right clicked on the project and clicked on add, what do I add it as (project output, file, merge module, or assembly)?
0
 
LVL 4

Expert Comment

by:gdexter
ID: 12103850
Add it as an Additional File
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question