Assemblies - Not installing

Got a problem you cannot solve? Try here.
Linuxman
Posts: 27
Joined: Wed May 18, 2005 10:36 pm

Assemblies - Not installing

Postby Linuxman » Tue Jun 07, 2005 11:03 pm

I am trying to install and register some assemblies I need to install to the GAC, when I try add assemblies from the assembly/GAC directory the software does not add the files. The software acts like it is doing something disappears and returns to the add window not adding anything.

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Wed Jun 08, 2005 10:34 am

Can you describe in more detail how you are attempting this?
The software attempts to read information from the assemblies and then adds that information to the appropriate view.

Linuxman
Posts: 27
Joined: Wed May 18, 2005 10:36 pm

Postby Linuxman » Wed Jun 08, 2005 4:34 pm

I am just going to the assemblies window, clicking add, then browse to the assembly/Gac folder and trying to add the file. The one is question is something like MSDATA...I can't remember the remainder without looking. However, then I tried any of the files and none of them worked. Then when I click open the screen flickers, like it is doing something and then nothing happens. If I close this window, nothing was added.

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Thu Jun 09, 2005 11:37 am

Can you try using the Install Assembly command in the script and see if it works that way, as an aid to figuring what might be going wrong?

Linuxman
Posts: 27
Joined: Wed May 18, 2005 10:36 pm

Postby Linuxman » Thu Jun 09, 2005 6:12 pm

sinan wrote:Can you try using the Install Assembly command in the script and see if it works that way, as an aid to figuring what might be going wrong?

I can, but I am not sure if I know how, can you give me a quick how-to.

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Sun Jun 12, 2005 8:53 am

You need to switch to the script view, and insert the command.

christal
Posts: 7
Joined: Tue Dec 26, 2006 11:40 am

InstallAware newbie - having the same problem

Postby christal » Wed Jan 03, 2007 1:58 pm

I am currently assessing InstallAware as a means to get away from the dreaded InstallShield. For the time being I am using a hybrid methodology, calling an InstallAware single exe from InstallShield 10.5 InstallScript project to get some files into the GAC. I have Added the files in the Assemblies area. They do not exist in my Files area. Do they need to be in both for InstallAware to install the dlls to the GAC? I tried including them as support files, thinking that might get them into the GAC (InstallAware finding them there to install to the GAC and then deleting them), but that did not work either. Oddly enough, the fist time I built the project, I had not checked off the Single Exe checkbox and my older multi-file install was still out there, though unused at that point...or so I thought. Somehow, the single file Exe was still grabbing the multi-file stuff and using that do the install and was getting the files into the GAC, but also copying them into the TARGETFOLDER (which is how the multi-file install was setup). When I realized that older versions of the files were still getting placed in the TARGETFOLDER, I deleted the Uncompressed folder (which contained the older InstallAware output) and rebuilt my single EXE, which still runs but now installs nothing to the GAC. Opens, flashes the InstallAware screen, closes, done. Nothing was installed. Sorry for being so long winded...two questions. Is the single file EXE a completely self-contained install? Why are my dlls listed in Assemblies not installing to the GAC?

Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Postby Gizm0 » Wed Jan 03, 2007 2:26 pm

Are your assemblies strong named?If not, this is why they don't get installed into GAC.
Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
InstallAware Software Corporation

christal
Posts: 7
Joined: Tue Dec 26, 2006 11:40 am

Postby christal » Wed Jan 03, 2007 2:46 pm

Thanks for responding! Yes, they are. In fact, at one point one of them was not and InstallAware would not accept the file for an Assembly. It gave me an error message that file was not strong named and therefore could not go into the GAC. Which I thought was pretty slick...letting me know ahead of time. I can see the place in the script where InstallAssemblies is getting called. As a test, I have just tossed in a Message Box before that code. OK. No message box came up, so somehow I have changed something and now the install is never getting to that point for some reason, though it must have earlier. That is right in the main install part of the script, which from my current use is really the only part of the script that I want to have run. I have disabled all of the dialog boxes and there is no user interface or even any prereqs. I just want the assemblies installed and for the installer to exit. So far, I find the scripting to be kind of confusing and I have not found a lot of documentation on it. I would love to see more concrete examples of scripts out in these forums. I see lots of advice, but very few actual script examples. Or, am I just looking in the wrong places?

Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Postby Gizm0 » Wed Jan 03, 2007 7:06 pm

Do you mind attaching the script file (.mia) so i can get a look into it?
Panagiotis Kefalidis

Software Design Team Lead

\"In order to succeed, your desire for success should be greater than your fear of failure\"

InstallAware Software Corporation

christal
Posts: 7
Joined: Tue Dec 26, 2006 11:40 am

Postby christal » Thu Jan 04, 2007 9:59 am

I have done some more testing (the messagebox not coming up was because I had the install in SILENT mode...duh!).

Anyway, I think I have found the problem. I am having InstallShield call LaunchAppAndWait on the single file release exe created with InstallAware. As a test, I moved the single file release exe to another folder and tried to run it and it fails. Seems it needs the mia.dll, the .res file and the data folder.

Why does the "single" file release exe require the other files to be present? I thought the "single file" was supposed to be the encapsulated release. When I build a Package file in InstallShield my whole release is in a single file and I thought that this was the equivalent option in InstallAware. Am I just choosing the wrong setup options?

The script is in the .mia file, right?

File Attached:

AddressStandardGAC.mia

christal
Posts: 7
Joined: Tue Dec 26, 2006 11:40 am

Postby christal » Thu Jan 04, 2007 11:23 am

By George, I think I've got it! Here is what happened.

First idiot move on my part...the build was set for Debug mode, so that is why there were multiple files. Though, it does build the "Debug" files into the "Release" directory, so maybe that's my semantics getting in the way, as I tend to think of "Release" as the opposite of "Debug" (have I been Microsoft -ied...-ized...). Anyway, for my InstallShield build, I was only grabbing the EXE and then of course it failed without it's support files.

Second idiot move...when the single EXE was not placing things in the GAC, I thought that copying the DLLs in as Support Files (Creatives) might fix the GAC install problem. Well apparently, it did not like that at all.

So, uncheck the Debug build box and remove the dlls from Creatives and now the Assemblies are showing up in the GAC.....again.

Thanks for responding and trying to help! The main problem seems to be me.....hunting and pecking my way through the application.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 119 guests