adam-may / hudson-tray-tracker

Automatically exported from code.google.com/p/hudson-tray-tracker
0 stars 0 forks source link

Silent Install? #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
My company would like to deploy Hudson to several workstations and my job 
is to figure out how to do this without having to do it manually on every 
single workstation.  I've tried all the "normal" command switches that 
make executable silent, but none have worked.  Do you have a command line 
switch I can use to make this a silent installation, or, better yet, do 
you have an MSI package for the installation?

Original issue reported on code.google.com by cbro...@gmail.com on 22 Apr 2010 at 11:16

GoogleCodeExporter commented 9 years ago
Hi,

I just checked and the standard options for NSIS seem to be working. To run the
installer in silent mode, you need to add the "/S" parameter. If you need to 
set the
installation directory, you need to add "/D=...".

For instance, I ran:
  HudsonTrayTrackerInstaller_v0.10.exe /S /D="D:\Program Files\Hudson Tray Tracker"

The only issue is that there is no output at all on the command line, and 
because it
is very fast, it makes you think nothing happened.

Can you try and let me know?

By the way, for my information, on how many computers are you going to install 
HTT on?

Thanks,
Alexis

Original comment by Alexis.S...@gmail.com on 22 Apr 2010 at 1:00

GoogleCodeExporter commented 9 years ago
Thanks.  I used the switch (and the install WAS very fast), however, the icon 
in the 
system tray doesn't appear (even after a reboot) and there is no evidence on 
the 
Start Menu.  

Also, if I try to uninstall the application using the uninstall.exe with a 
silent 
switch (/S), the script runs, but no uninstall happens - the Program Files 
folder is 
still intact, and the application still shows in the Add/Remove Programs area.

I am going to deploy to about 30-40 workstations at this time.

Thanks for your help with this.

Original comment by cbro...@gmail.com on 22 Apr 2010 at 3:15

GoogleCodeExporter commented 9 years ago
I suspect that you don't get the shortcuts because they are created for the 
user who
ran the installer, not for "all users". Are you using a separate user account 
for the
installation? That would also explain why the application doesn't run on 
startup (a
shortcut is put in "Start Menu\Startup").

For the uninstaller, this is actually an issue with version 0.10 and older 
(issue
#42). You can try version 10.1 beta if you want to test that. I will soon 
perform a
stable release so that you can get the patch.

Original comment by Alexis.S...@gmail.com on 22 Apr 2010 at 4:12

GoogleCodeExporter commented 9 years ago
I am not seeing any shortcuts under any profiles, so, I just navigated to the 
c:\program files\Hudson Tray Tracker directory and double-clicked on the 
hudsontraytracker.exe file, but was met with an error (I submitted a separate 
issue 
on this from my earlier, manual installation attempts).  The error is:  "Hudson 
Tray 
Tracker has encountered a problem and needs to close."  No entries in the Event 
Log 
of the system, so I don't know what this error means.  This is a pretty "clean" 
Windows XP SP3 system.  Are there more prerequisites other than .NET 2.0?

Original comment by cbro...@gmail.com on 22 Apr 2010 at 6:14

GoogleCodeExporter commented 9 years ago
It's weird that you don't get the shortcuts. It seems to have been working well 
on
most installations. Not sure what is different here.

I saw the other error. I was wondering what it could be. The change between 
0.9.4 and
0.10 is the upgrade from .Net 2.0 to .Net 3.5, but you say that you have .Net 
3.5
installed as well.

I suppose we could find the missing dependencies (if that is the issue) by using
Dependency Walker (http://www.dependencywalker.com/) or Reflector
(http://www.red-gate.com/products/reflector/index.htm). You can give it a try 
if you
can. Otherwise, I will investigate on Monday.

Original comment by Alexis.S...@gmail.com on 22 Apr 2010 at 10:13

GoogleCodeExporter commented 9 years ago
I tried Dependency Walker, but I'm not terribly familiar with the tool.  I 
attached 
the DWI file for you to review.  The error on the DWMAPI.DLL file is all I'm 
seeing.  A quick Internet search indicates that this may be a red herring and 
not 
really the culprit, but I don't know. I am able to push out the earlier version 
0.9.4 without issue, but when I upgrade (either via the application or by 
pushing it 
through a deployment solution), the newer version fails to load.  I still 
couldn't 
get the shortcut to load in the Startup, so I added a step in the installation 
script to copy the shortcut to the All Users' Start-up area. Any help you can 
provide would be appreciated.

Original comment by cbro...@gmail.com on 26 Apr 2010 at 11:58

Attachments:

GoogleCodeExporter commented 9 years ago
As a reference, I installed 0.9.4 on the system and ran Dependency Tracker on 
that 
installation exectuable.  I got the same warning about DWMAPI.DLL as I did with 
the 
newer version, which leads me to believe that this is not the culprit.

Original comment by cbro...@gmail.com on 26 Apr 2010 at 12:04

GoogleCodeExporter commented 9 years ago
I have a prepared a MSI installer for you to test:
http://hudson-tray-tracker.googlecode.com/files/HudsonTrayTracker_v0.10.2_beta.m
si

It should handle dependencies correctly, but I have not yet figured out why it 
is
requesting administrator privileges under Vista.

Let me know if it works for you. Thanks.

Original comment by Alexis.S...@gmail.com on 27 Apr 2010 at 11:33

GoogleCodeExporter commented 9 years ago
I forgot. To perform a silent install, you need to run the following command:
msiexec /q /i "HudsonTrayTracker.msi" TARGETDIR="C:\Program Files\Hudson Tray 
Tracker"

Original comment by Alexis.S...@gmail.com on 27 Apr 2010 at 11:39

GoogleCodeExporter commented 9 years ago
Thank you very much!  This version appears to be working, but I still didn't 
get the 
Tray Tracker shortcut in the Startup area for all users.  I was able to add 
manually, so it isn't a big deal for me.  I didn't see a property like 
'ALLUSERS" in 
the MSI which is sometimes the way to get that to work.

Is this version one that I can push out, or are you going to do a final version 
within the next few days?  I can wait if you plan to, but I'm okay with this 
one as 
long as there are no concerns.

Original comment by cbro...@gmail.com on 27 Apr 2010 at 6:42

GoogleCodeExporter commented 9 years ago
Thanks for your feedback. I have released a proper version which you can 
download
from 
http://hudson-tray-tracker.googlecode.com/files/HudsonTrayTracker_v0.10.3.msi

This version has a switch in the installer to install for "everyone"/"just me". 
This
allows you to have the link in the "startup" menu for all users.

There are more details on this version on
http://blog.idm.fr/2010/04/hudson-tray-tracker-version-0103.html if you are 
interested.

Original comment by Alexis.S...@gmail.com on 28 Apr 2010 at 9:26