平台生成器 Project.Dat 问题
我正在尝试使用平台生成器为 Windows CE6 自定义映像。
图像本身很好。但是,我的定制失败了。
我的 project.dat 文件如下所示:
Directory("\Windows\StartUp"):-File("StartUpBat.bat","\Windows\StartUpBat.bat")
Directory("\Hard Disk"):-File("RegFlushKey.exe","\Windows\RegFlushKey.exe")
Directory("\Hard Disk"):-File("TextEd.exe","\Windows\TextEd.exe")
Directory("\Hard Disk"):-File("STARTSFTP.BAT","\Windows\STARTSFTP.BAT")
Directory("\Hard Disk"):-File("STARTUP.BAT","\Windows\STARTUP.BAT")
Directory("\Hard Disk"):-File("STARTVNC.BAT","\Windows\STARTVNC.BAT")
Directory("\SSH"):-File("BANNER.TXT","\Windows\BANNER.TXT")
Directory("\SSH"):-File("error_log","\Windows\error_log")
Directory("\SSH"):-File("RSA1","\Windows\RSA1")
Directory("\SSH"):-File("ssh_host_dsa_key","\Windows\ssh_host_dsa_key")
Directory("\SSH"):-File("SSH_LOG","\Windows\SSH_LOG")
Directory("\SSH"):-File("sshd_config","\Windows\sshd_config")
所有文件都存在于 NK.BIN 中(在预制作映像期间作为自定义构建操作进行复制,并通过打开 NK.BIN 文件进行确认),但由于某种原因似乎没有被复制到指定位置(列表中的第一个条目除外)。
当我将第二个和第三个条目更改为:
Directory("\Windows\Desktop"):-File("RegFlushKey.exe","\Windows\RegFlushKey.exe")
Directory("\Windows\Desktop"):-File("TextEd.exe","\Windows\TextEd.exe")
它们有效,但是,尝试让它们出现在另一个分区(硬盘)上不起作用。是地点名称中的“空格”吗?
由于某种原因,SSH 目录也不起作用。
如果相关,我的“Project.Bib”文件如下:
MODULES
; Name Path Memory Type
; -------------- --------------------------------------------- -----------
FILES
; Name Path Memory Type
; -------------- --------------------------------------------- -----------
StartUpBat.bat $(_FLATRELEASEDIR)\StartUpBat.bat NK FILE
vncconfig.exe $(_FLATRELEASEDIR)\vncconfig.exe NK FILE
winvnc.exe $(_FLATRELEASEDIR)\winvnc.exe NK FILE
sshd.exe $(_FLATRELEASEDIR)\sshd.exe NK FILE
sftp-server.exe $(_FLATRELEASEDIR)\sftp-server.exe NK FILE
AddUser.exe $(_FLATRELEASEDIR)\AddUser.exe NK FILE
sockettofile.dll $(_FLATRELEASEDIR)\sockettofile.dll NK FILE
TextEd.exe $(_FLATRELEASEDIR)\TextEd.exe NK FILE
STARTUP.BAT $(_FLATRELEASEDIR)\STARTUP.BAT NK FILE
STARTVNC.BAT $(_FLATRELEASEDIR)\STARTVNC.BAT NK FILE
STARTSFTP.BAT $(_FLATRELEASEDIR)\STARTSFTP.BAT NK FILE
AddUser.exe $(_FLATRELEASEDIR)\AddUser.exe NK FILE
LIBEAY32.dll $(_FLATRELEASEDIR)\LIBEAY32.dll NK FILE
OpenBSDCompat.dll $(_FLATRELEASEDIR)\OpenBSDCompat.dll NK FILE
sshcompat.dll $(_FLATRELEASEDIR)\sshcompat.dll NK FILE
zlibce.dll $(_FLATRELEASEDIR)\zlibce.dll NK FILE
BANNER.TXT $(_FLATRELEASEDIR)\BANNER.TXT NK FILE
error_log $(_FLATRELEASEDIR)\error_log NK FILE
RSA1 $(_FLATRELEASEDIR)\RSA1 NK FILE
ssh_host_dsa_key $(_FLATRELEASEDIR)\ssh_host_dsa_key NK FILE
SSH_LOG $(_FLATRELEASEDIR)\SSH_LOG NK FILE
sshd_config $(_FLATRELEASEDIR)\sshd_config NK FILE
我做错了什么?
I am trying to customise an image for Windows CE6 using platform builder.
The image itself is fine. However, my customisation is failing.
My project.dat file looks like this:
Directory("\Windows\StartUp"):-File("StartUpBat.bat","\Windows\StartUpBat.bat")
Directory("\Hard Disk"):-File("RegFlushKey.exe","\Windows\RegFlushKey.exe")
Directory("\Hard Disk"):-File("TextEd.exe","\Windows\TextEd.exe")
Directory("\Hard Disk"):-File("STARTSFTP.BAT","\Windows\STARTSFTP.BAT")
Directory("\Hard Disk"):-File("STARTUP.BAT","\Windows\STARTUP.BAT")
Directory("\Hard Disk"):-File("STARTVNC.BAT","\Windows\STARTVNC.BAT")
Directory("\SSH"):-File("BANNER.TXT","\Windows\BANNER.TXT")
Directory("\SSH"):-File("error_log","\Windows\error_log")
Directory("\SSH"):-File("RSA1","\Windows\RSA1")
Directory("\SSH"):-File("ssh_host_dsa_key","\Windows\ssh_host_dsa_key")
Directory("\SSH"):-File("SSH_LOG","\Windows\SSH_LOG")
Directory("\SSH"):-File("sshd_config","\Windows\sshd_config")
All the files exist within NK.BIN (copied during pre-make image as a custom build action, and confirmed by opening up the NK.BIN file), but for some reason do no appear to be copied to the specified locations, apart from the first entry in the list.
When I altered the second and third entries to:
Directory("\Windows\Desktop"):-File("RegFlushKey.exe","\Windows\RegFlushKey.exe")
Directory("\Windows\Desktop"):-File("TextEd.exe","\Windows\TextEd.exe")
They worked, however, trying to get them to appear on another partition (Hard Disk) doesn't work. Is it the 'space' in the location name?
The SSH directory doesn't work either for some reason.
In case it is relevant, my "Project.Bib" file is as follows:
MODULES
; Name Path Memory Type
; -------------- --------------------------------------------- -----------
FILES
; Name Path Memory Type
; -------------- --------------------------------------------- -----------
StartUpBat.bat $(_FLATRELEASEDIR)\StartUpBat.bat NK FILE
vncconfig.exe $(_FLATRELEASEDIR)\vncconfig.exe NK FILE
winvnc.exe $(_FLATRELEASEDIR)\winvnc.exe NK FILE
sshd.exe $(_FLATRELEASEDIR)\sshd.exe NK FILE
sftp-server.exe $(_FLATRELEASEDIR)\sftp-server.exe NK FILE
AddUser.exe $(_FLATRELEASEDIR)\AddUser.exe NK FILE
sockettofile.dll $(_FLATRELEASEDIR)\sockettofile.dll NK FILE
TextEd.exe $(_FLATRELEASEDIR)\TextEd.exe NK FILE
STARTUP.BAT $(_FLATRELEASEDIR)\STARTUP.BAT NK FILE
STARTVNC.BAT $(_FLATRELEASEDIR)\STARTVNC.BAT NK FILE
STARTSFTP.BAT $(_FLATRELEASEDIR)\STARTSFTP.BAT NK FILE
AddUser.exe $(_FLATRELEASEDIR)\AddUser.exe NK FILE
LIBEAY32.dll $(_FLATRELEASEDIR)\LIBEAY32.dll NK FILE
OpenBSDCompat.dll $(_FLATRELEASEDIR)\OpenBSDCompat.dll NK FILE
sshcompat.dll $(_FLATRELEASEDIR)\sshcompat.dll NK FILE
zlibce.dll $(_FLATRELEASEDIR)\zlibce.dll NK FILE
BANNER.TXT $(_FLATRELEASEDIR)\BANNER.TXT NK FILE
error_log $(_FLATRELEASEDIR)\error_log NK FILE
RSA1 $(_FLATRELEASEDIR)\RSA1 NK FILE
ssh_host_dsa_key $(_FLATRELEASEDIR)\ssh_host_dsa_key NK FILE
SSH_LOG $(_FLATRELEASEDIR)\SSH_LOG NK FILE
sshd_config $(_FLATRELEASEDIR)\sshd_config NK FILE
What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在处理此类配置时,重新构建干净的 CE 映像并将其复制到闪存盘上似乎是不够的。
一旦我格式化闪存盘并使用此图像创建干净的新设置,所有内容都会到达正确的位置。
我相信这取决于我对注册表使用基于闪存的存储的设置,部署新的 NK.BIN 文件时不会自动覆盖该注册表。
It would appear that re-building a clean CE Image and copying it onto the flash disk isn't enough when dealing in configurations like this.
Once I formatted the flash disk and created it clean with this image the new settings 'took' and everything went to the correct places.
I believe this is down to my set-up using a flash based storage for the registry which isn't automatically over-written when a new NK.BIN file is deployed.