[NSIs] Notes for creating shortcuts in NSIs

Source: Internet
Author: User

Today, a colleague asked me a question. After installing the program using the program installation package provided by me, I found that the created application shortcut property form contains a [start position (s ):] There is a problem with the file path. I will check it according to the view method he said. No, the [target (t):] item path is "C: /program files/product name/product .exe ", but the path of the [start position (s):] item is" C:/program files/product name/log ". Ah, how did this happen? As a result, I began to think about whether the registry information was read properly or not. I found no prompts in the Registry for a long time. Open the installation script, find the location where the shortcut script is created, and find a problem. The path in [starting position (s):] is "C:/program ".
Files/product name/log is the script used to create a shortcut script. This seems to have prompted me something. I tried to move the script for creating a shortcut to "$ instdir/product name" and re-compile the script to solve the problem.

[Target (t):] the path of the item is "C:/program files/product name/product .exe ";

[Start position (s):] The item path is "C:/program files/product name"

Example:

Setoutpath "$ instdir/product name"
File "product .exe"
 
Createshortcut "$ desktop/product. lnk" "$ instdir/product name/product .exe"
 
Script order should be arranged.

In some applications, the shortcut [start position (s):] item created is null. I have not carefully studied how to implement it. If anyone knows, please advise.

The above content may be omitted. the viewer may criticize and give advice.

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.