OSDN Git Service

Fix project files.
[ffftp/ffftp.git] / Package / make_cab_file.bat
1 REM;\r
2 REM;  This is batch-file to prepare for creating FFFTP installer.\r
3 REM;  Please run in "ffftp\Package" directory.\r
4 REM;  To change settings, please edit "instaler_config.bat".\r
5 REM; \r
6 \r
7 call installer_config.bat\r
8 \r
9 set DIR_CAB=%cd%\%DIR_JPN_INST%\..\r
10 set CAB_NAME=ffftp\r
11 set SED_FILE=%DIR_CAB%\%CAB_NAME%.sed\r
12 echo [Version] > %SED_FILE%\r
13 echo Class=IEXPRESS >> %SED_FILE%\r
14 echo SEDVersion=3 >> %SED_FILE%\r
15 echo [Options] >> %SED_FILE%\r
16 echo PackagePurpose=CreateCAB >> %SED_FILE%\r
17 echo ShowInstallProgramWindow=0 >> %SED_FILE%\r
18 echo HideExtractAnimation=0 >> %SED_FILE%\r
19 echo UseLongFileName=1 >> %SED_FILE%\r
20 echo InsideCompressed=0 >> %SED_FILE%\r
21 echo CAB_FixedSize=0 >> %SED_FILE%\r
22 echo CAB_ResvCodeSigning=6144 >> %SED_FILE%\r
23 echo RebootMode=I >> %SED_FILE%\r
24 echo InstallPrompt=%%InstallPrompt%% >> %SED_FILE%\r
25 echo DisplayLicense=%%DisplayLicense%% >> %SED_FILE%\r
26 echo FinishMessage=%%FinishMessage%% >> %SED_FILE%\r
27 echo TargetName=%%TargetName%% >> %SED_FILE%\r
28 echo FriendlyName=%%FriendlyName%% >> %SED_FILE%\r
29 echo AppLaunched=%%AppLaunched%% >> %SED_FILE%\r
30 echo PostInstallCmd=%%PostInstallCmd%% >> %SED_FILE%\r
31 echo AdminQuietInstCmd=%%AdminQuietInstCmd%% >> %SED_FILE%\r
32 echo UserQuietInstCmd=%%UserQuietInstCmd%% >> %SED_FILE%\r
33 echo SourceFiles=SourceFiles >> %SED_FILE%\r
34 echo [Strings] >> %SED_FILE%\r
35 echo InstallPrompt= >> %SED_FILE%\r
36 echo DisplayLicense= >> %SED_FILE%\r
37 echo FinishMessage= >> %SED_FILE%\r
38 echo TargetName=%CAB_NAME%.cab >> %SED_FILE%\r
39 echo FriendlyName=IExpress Wizard >> %SED_FILE%\r
40 echo AppLaunched= >> %SED_FILE%\r
41 echo PostInstallCmd= >> %SED_FILE%\r
42 echo AdminQuietInstCmd= >> %SED_FILE%\r
43 echo UserQuietInstCmd= >> %SED_FILE%\r
44 set PREV_CD=%cd%\r
45 cd %DIR_CAB%\%CAB_NAME%\r
46 for %%i in (*) do echo FILE%%i=%%i >> %SED_FILE%\r
47 cd %PREV_CD%\r
48 echo [SourceFiles] >> %SED_FILE%\r
49 echo SourceFiles0=%CAB_NAME%\ >> %SED_FILE%\r
50 echo [SourceFiles0] >> %SED_FILE%\r
51 set PREV_CD=%cd%\r
52 cd %DIR_CAB%\%CAB_NAME%\r
53 for %%i in (*) do echo %%FILE%%i%%= >> %SED_FILE%\r
54 cd %PREV_CD%\r
55 set PREV_CD=%cd%\r
56 cd %DIR_CAB%\r
57 iexpress /N %CAB_NAME%.sed\r
58 cd %PREV_CD%\r
59 \r
60 set DIR_CAB=%cd%\%DIR_ENG_INST%\..\r
61 set CAB_NAME=ffftp\r
62 set SED_FILE=%DIR_CAB%\%CAB_NAME%.sed\r
63 echo [Version] > %SED_FILE%\r
64 echo Class=IEXPRESS >> %SED_FILE%\r
65 echo SEDVersion=3 >> %SED_FILE%\r
66 echo [Options] >> %SED_FILE%\r
67 echo PackagePurpose=CreateCAB >> %SED_FILE%\r
68 echo ShowInstallProgramWindow=0 >> %SED_FILE%\r
69 echo HideExtractAnimation=0 >> %SED_FILE%\r
70 echo UseLongFileName=1 >> %SED_FILE%\r
71 echo InsideCompressed=0 >> %SED_FILE%\r
72 echo CAB_FixedSize=0 >> %SED_FILE%\r
73 echo CAB_ResvCodeSigning=6144 >> %SED_FILE%\r
74 echo RebootMode=I >> %SED_FILE%\r
75 echo InstallPrompt=%%InstallPrompt%% >> %SED_FILE%\r
76 echo DisplayLicense=%%DisplayLicense%% >> %SED_FILE%\r
77 echo FinishMessage=%%FinishMessage%% >> %SED_FILE%\r
78 echo TargetName=%%TargetName%% >> %SED_FILE%\r
79 echo FriendlyName=%%FriendlyName%% >> %SED_FILE%\r
80 echo AppLaunched=%%AppLaunched%% >> %SED_FILE%\r
81 echo PostInstallCmd=%%PostInstallCmd%% >> %SED_FILE%\r
82 echo AdminQuietInstCmd=%%AdminQuietInstCmd%% >> %SED_FILE%\r
83 echo UserQuietInstCmd=%%UserQuietInstCmd%% >> %SED_FILE%\r
84 echo SourceFiles=SourceFiles >> %SED_FILE%\r
85 echo [Strings] >> %SED_FILE%\r
86 echo InstallPrompt= >> %SED_FILE%\r
87 echo DisplayLicense= >> %SED_FILE%\r
88 echo FinishMessage= >> %SED_FILE%\r
89 echo TargetName=%CAB_NAME%.cab >> %SED_FILE%\r
90 echo FriendlyName=IExpress Wizard >> %SED_FILE%\r
91 echo AppLaunched= >> %SED_FILE%\r
92 echo PostInstallCmd= >> %SED_FILE%\r
93 echo AdminQuietInstCmd= >> %SED_FILE%\r
94 echo UserQuietInstCmd= >> %SED_FILE%\r
95 set PREV_CD=%cd%\r
96 cd %DIR_CAB%\%CAB_NAME%\r
97 for %%i in (*) do echo FILE%%i=%%i >> %SED_FILE%\r
98 cd %PREV_CD%\r
99 echo [SourceFiles] >> %SED_FILE%\r
100 echo SourceFiles0=%CAB_NAME%\ >> %SED_FILE%\r
101 echo [SourceFiles0] >> %SED_FILE%\r
102 set PREV_CD=%cd%\r
103 cd %DIR_CAB%\%CAB_NAME%\r
104 for %%i in (*) do echo %%FILE%%i%%= >> %SED_FILE%\r
105 cd %PREV_CD%\r
106 set PREV_CD=%cd%\r
107 cd %DIR_CAB%\r
108 iexpress /N %CAB_NAME%.sed\r
109 cd %PREV_CD%\r
110 \r