在Windows 8.1(NSIS)中从安装程序在开始屏幕上获取快捷方式 [英] Getting a shortcut on the start screen from installer in Windows 8.1 (NSIS)

查看:45
本文介绍了在Windows 8.1(NSIS)中从安装程序在开始屏幕上获取快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我猜这个答案存在某个地方,但是我已经搜索和尝试了8个多小时,所以我在问.

I'm guessing this answer exists somewhere but I've been searching and trying things for 8+ hours now so I'm asking.

在安装时如何在Windows 8.1(以及8和7)启动屏幕上获得图标?

How do I get an icon on the Windows 8.1 (and 8, and 7) start screen at installation time?

我正在使用 Nullsoft可编写脚本的安装系统.我已经尝试了2.46和3.0b0版本(不是我认为与它有任何关系,但是最好同时尝试这两个版本.)

I'm using Nullsoft Scriptable Install System. I've tried both version 2.46 and 3.0b0 (not that I thought that had anything to do with it but might as well try both).

我认为脚本的相关部分是这个

What I think is the relevant part of my script is this

!define APPNAME "MyApp"
!define COMPANYNAME "Greggman"

SetShellVarContext current
CreateDirectory "$STARTMENU\Programs\${COMPANYNAME}"
CreateShortCut "$STARTMENU\Programs\${COMPANYNAME}\${APPNAME}.lnk" "$INSTDIR\myapp.exe" "$\"$INSTDIR\somedir\somescript.foo$\" --app-mode" "$INSTDIR\logo.ico"
CreateShortCut "$STARTMENU\Programs\${COMPANYNAME\${APPNAME}-Uninstall.lnk" "$INSTDIR\uninstall.exe"        createDirectory "$SMPROGRAMS\${COMPANYNAME}"

它创建了一个快捷方式,但仅在所有应用程序屏幕(或任何所谓的屏幕)上可见

It creates a shortcut but it's only visible on the all apps screen (or whatever that's called)

开始屏幕上没有任何内容

There's nothing on the start screen

也许是应该的方式,但是我很难相信普通用户会知道他们要么必须搜索刚刚安装的应用程序,要么必须单击该应用程序左下方的那个小箭头.开始屏幕,然后在所有这些小图标中找到"greggman"部分,然后单击MyApp来运行它们刚刚安装的内容.

Maybe that's the way it should be but it's hard for me to believe the average user is going to know they either have to search for the app they just installed or else they have to click that tiny arrow in the bottom left of the start screen and then find the "greggman" section among all those tiny icons, then then click MyApp to run the thing they just installed.

我还尝试了具有管理员权限的HKLM和仅具有用户权限的HKCR.我宁愿坚持使用HKCR,但由于在任何情况下都无法使用,我认为这不是问题所在.

I've also tried both HKLM with admin rights and HKCR with only user rights. I'd prefer to stick to HKCR but since it didn't work in either case I don't think that's the issue.

我在哪里放置快捷方式或注册表设置,或在开始屏幕上添加图块的方法.还是我应该做些其他事情,以便我的用户在安装MyApp后可以找到它?

Where do I put shortcuts or registry settings or whatever to add a tile to the start screen. Or is there some other thing I should do so my users can find MyApp after they've installed it?

推荐答案

Windows 8会将您的快捷方式固定到开始"屏幕(如果未设置上面讨论的标志,则所有快捷方式-逐个快捷方式).在Windows 8.1上,只有USER可以固定快捷方式,而他们必须手动进行操作.进行此更改是因为用户抱怨其开始"屏幕太混乱了.

Windows 8 will pin your shortcuts to the Start Screen, (ALL of your shortcuts if the flag discussed above isn't set - on a per-shortcut basis). On Windows 8.1, only the USER can pin shortcuts, and they have to do it manually. The change was made because users complained their Start Screens were getting too cluttered.

这篇关于在Windows 8.1(NSIS)中从安装程序在开始屏幕上获取快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆