Bug 691268 - Unattended Installation not documented
Summary: Unattended Installation not documented
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Config/Install (show other bugs)
Version: 8.71
Hardware: PC Windows Vista
: P4 normal
Assignee: Hin-Tak Leung
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-27 16:59 UTC by dspannbauer
Modified: 2010-06-17 19:35 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dspannbauer 2010-04-27 16:59:56 UTC
The unattended Installation of GS 8.71 does not work.
When I call gsetup only with one parameter "-dir %ProgramFiles%\gs" I get a Window:
Usage: setupgs.exe -title "GPL Ghostscript #.##" -dir "gs#.##" -list "filelist.txt" spec1 spec2 specn

So I call it with additional -title "ghostscript 8.71" -dir "%ProgramFiles%\gs" -list c:\gs-unpacked\filelist.txt. With this Options the installation does nothing.

The specs listet in the Help-Window are nowhere documented.

In this Thread, a User has the same Problem: http://old.nabble.com/unattended-installation-td27866661.html

Please fix that an write it down somewhere in the documentation.
Comment 1 Ray Johnston 2010-05-06 16:58:25 UTC
setupgs with arguments is use to generate a filelist, not to install gs.
Comment 2 dspannbauer 2010-05-06 20:21:19 UTC
Ok, but what are the arguments for?
And how can I setup Ghostscript unattended?

Regards

Daniel
Comment 3 Hin-Tak Leung 2010-06-08 23:29:07 UTC
(In reply to comment #2)
> Ok, but what are the arguments for?

If I read the code (psi/dwsetup.cpp) correctly, the winzipse-based installer binary setupgs.exe works in 3 ways:

- no argument: interactive set up
- 1 argument: batch non-interactive setup (for the destination directory)
- >1 arguments: run as "make_filelist.exe" during the installer packaging process to generate a list of files to copy and for uninstall.

> And how can I setup Ghostscript unattended?

So for silent installation, you probably want to do something like (after unzip'ping):
   setupgs.exe "C:\Program Files\gs"

Also, the new NSIS-based installer supports the "/S" switch for silent installation. See http://bugs.ghostscript.com/show_bug.cgi?id=691363#c3 if you feel like trying it out.

I just tried the 1-arg invocation myself, and it works as I thought it would.

Re-assign to myself for updating documentation to mention 1-arg invocation.
Comment 4 Hin-Tak Leung 2010-06-09 00:25:09 UTC
Change bug report subject from 'not work' to 'not documented' - Unattended installation works... It is just not obvious how one is to do it without looking at the code itself.
Comment 5 dspannbauer 2010-06-09 09:11:21 UTC
Ok, Thanks a lot for the hint. It works, but is not configurable (Use Windows-Truetype-Fonts etc.).

But NSIS is a great step in the right direction.
Comment 6 Hin-Tak Leung 2010-06-09 17:42:42 UTC
(In reply to comment #5)
> Ok, Thanks a lot for the hint. It works, but is not configurable (Use
> Windows-Truetype-Fonts etc.).

How would you like it to be configurable (for either installers)? The "Use Windows CJK fonts" is simply running this on post-install:
 
gswin32c -q -dBATCH -sFONTDIR=c:/windows/fonts -sCIDFMAP=lib/cidfmap \
lib/mkcidfm.ps

which defaults to YES for the NSIS installer (not sure about the winzipse installer).

The other options (whether to create start-menu? what else) isn't configurable, but it could be relatively easily with NSIS.
Comment 7 Hin-Tak Leung 2010-06-17 19:35:13 UTC
Added documentation about unattended install for the winzipse-based isntaller in r11387.

Suggestions to improving either the winzipse-based installer or the NSIS-based installer please add to bug 691363 or file new bugs.
Comment 8 Hin-Tak Leung 2010-06-17 19:35:53 UTC
Sorry, meant to close this with the last comment.