Hoho, I found a good idea.

Source: Internet
Author: User

NSIs:

Nullsoft Scriptable install System

An installer is the first experience of a user with your application. slow or unsuccesful software installations are the most irritating computer problems. A quick and user friendly installer is therefore an essential part of your software product.

NSIs (Nullsoft Scriptable install System) is a tool that allows programmers to create such installers for windows. It is released under an open source license and is completely free for any use.

Link: http://nsis.sourceforge.net/

Paste a newly written packaging script and check it out. Hopefully, it's not a leak. God bless. You can see that there is basically no nonsense, and there is no need for comments. You can understand it either in a computer or in English, foreigners are funny. We can find Microsoft shit, I like f * ck sheep... fainted

------------------------------------------------------------------

Name "Run test"
Caption "Run's test"
OUTFILE "setup.exe"

Licensetext "A test text, make sure it's all there"

Installdir "$ ProgramFiles \ sms_client"

Page Directory
Page instfiles

Section ""

Detailprint "Welcome to setup program ..."
Writeregstr "hkcu" "SOFTWARE \ comgi \ trafficstation" "install_dir" "$ instdir"
Writeregstr "hkcu" "SOFTWARE \ comgi \ trafficstation" "automovetohistory" "true"
Writeregstr "hkcu" "SOFTWARE \ comgi \ trafficstation" "autocleantrashcan" "true"
Writeregstr "hkcu" "SOFTWARE \ comgi \ trafficstation" "autoreceiveinterval" "10"
Writeregstr "hkcu" "SOFTWARE \ comgi \ trafficstation" "timeformat" HH: Mi"
Writeregstr "hkcu" "SOFTWARE \ comgi \ trafficstation" "autocleandays" "7"
Writeregstr "hkcu" "SOFTWARE \ comgi \ trafficstation" "automovedays" "3"
Writeregstr "hkcu" "SOFTWARE \ comgi \ trafficstation" "WSDL" http://bdcb.m-mall.cn/TrafficService/services/TrafficService"

Writeregstr HKLM "SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall \ bignsistest" "displayname" "bignsistest (remove only )"
Writeregstr HKLM "SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall \ bignsistest" "uninstallstring" '"$ instdir \ bt-uninst.exe "'

Setoutpath $ instdir
File/a "F: \ bdcb SMS client \ stationsmsclient.exe"
File/a "F: \ bdcb SMS client \ data. dat"
File/a "F: \ bdcb SMS client \ dotnetfx.exe"
File/a "F: \ bdcb SMS client \ onlineupdater.exe"
File/a "F: \ bdcb SMS client \ trafficclient_1.2.0.0.dll"
File/a "F: \ bdcb SMS client \ trafficclient. chm"
File/a "F: \ bdcb SMS client \ stationsmsclient.exe. config"
Writeuninstaller "uninst.exe"

Createdirectory "$ smprograms \ SMS"
Createshortcut "$ smprograms \ Kang click SMS \ UninstallProgram. Lnk "" $ instdir \ uninst.exe"
Createshortcut "$ smprograms \ Kang click SMS \ SMS application. lnk" "$ instdir \ stationsmsclient.exe"
Createshortcut "$ smprograms \ kanchu SMS \ Help document. lnk" "$ instdir \ trafficclient. chm"
Createshortcut "$ Desktop \ SMS application. lnk" "$ instdir \ stationsmsclient.exe"

Exec "$ instdir \ dotnetfx.exe"

Sectionend

Section "Uninstall"

Delete "$ instdir \ stationsmsclient.exe"
Delete "$ instdir \ dotnetfx.exe"
Delete "$ instdir \ onlineupdater.exe"
Delete "$ instdir \ trafficclient_1.2.0.0.dll"
Delete "$ instdir \ trafficclient. chm"
Delete "$ instdir \ stationsmsclient.exe. config"
Delete "$ smprograms \ SMS application. lnk"
Delete "$ Desktop \ SMS application. lnk"
Delete "$ smprograms \ SMS \ Help document. lnk"
Delete "$ smprograms \ Kang SMS \ Uninstall program. lnk"
Delete "$ instdir \ uninst.exe"

Sectionend

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.