使用NULLSOFT安装应用程序时,我想基于32/64位Windows操作系统在Destination文件夹中显示路径。
如果是32位,则应为
def f(_):
x = random() * 2 - 1
y = random() * 2 - 1
return 1 if x ** 2 + y ** 2 < 1 else 0
如果是64位,则应为
C:\Program Files\
我在脚本中使用了C:\Program Files (x86)\
。这样一来,两个32/64位操作系统都显示InstallDir "$PROGRAMFILES64\ "
。
如果有人有任何想法,请帮助我。
答案 0 :(得分:0)
您不必做任何特别的事情,NSIS会为您处理。
<link href='https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.9.0/fullcalendar.min.css' rel='stylesheet' />
<link href='https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.9.0/fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.9.0/fullcalendar.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.9.0/gcal.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.23/moment-timezone-with-data.min.js'></script>
<script>
$(document).ready(function() {
$('#calendar').fullCalendar({
defaultView: 'list',
defaultDate: '2019-01-20',
duration: {
days: 180
},
header: {
left: '',
center: 'title',
right: ''
},
displayEventTime: true, // don't show the time column in list view
height: 450,
// THIS KEY WON'T WORK IN PRODUCTION!!!
// To make your own Google API key, follow the directions here:
// http://fullcalendar.io/docs/google_calendar/
googleCalendarApiKey: 'REALKEY',
// US Holidays
events: 'REALCALENDAR',
eventClick: function(event) {
// opens events in a popup window
window.open(event.url, 'gcalevent', 'width=700,height=600');
return false;
},
loading: function(bool) {
$('#loading').toggle(bool);
}
});
});
</script>
<style>
#loading {
display: none;
position: absolute;
top: 10px;
right: 10px;
}
#calendar {
max-width: 900px;
margin: 0 auto;
}
</style>
在32位Windows上将使用InstallDir $ProgramFiles32\MyApp
Page Directory
Page InstFiles
,在64位Windows上将使用X:\Program Files\
。
X:\Program Files (x86)\
是生成32位安装程序时$ProgramFiles
的别名,也是生成64位安装程序时$ProgramFiles32
的别名。
$ProgramFiles64
仅在安装64位应用程序时使用!