The procedure for creating a package is as follows.
- Start File Package App
- Select “Start Package Wizard” on the main screen
- Screen 1 (Before you begin): Select the initial setting value
- Screen 2 (Product Information): Set product information
- Screen 3 (Package Folder): Select the files to be packaged and set the extraction destination
- Screen 4 (Execution File): Set the file to be executed after extraction if necessary
- Screen 5 (Extraction Restriction): Set extraction restriction if necessary
- Screen 6 (Package Creation): Create a package
The followings will explain each of them. It is necessary to set the basic function, but if you do not need the optional function you do not need to set it.
1.Start File Package App
Double click on the icon on the desktop to launch File Package App.
If there is no icon on the desktop, search “File Package App” from the start screen and launch it.
Wow, Why? The application icon on the start screen is a white icon. We will fix it the next time that we create the installer.
2. Select “Start Package Wizard” on the main screen
Select “Start Package Wizard” of the first button on the main screen.
Other buttons are not yet implemented and can not be used. (Version 0.5.0 as of April 22, 2018)
3. Screen 1 (Before you begin): Select the initial setting value
Choose the default settings for creating packages.
-
- Make all settings the default
- Inherit the settings from the previous package creation
- Use settings saved in configuration file
You can select.
4. Screen 2 (Product Information): Set product information
Set product information. These values are used as version resource information of the completed package file. The three items “Product name”, “Product version”, “File version” are basic functions and must be set.
5. Screen 3 (Package Folder): Select the files to be packaged and set the extraction destination
On the package folder screen, specify the root folder where the file you want to package is located. Root folder is a basic function and must be set. To add a folder, click the + button on the upper left side.
The folder selection dialog is displayed and you can select any folder. When a folder is selected, files in folder and subfolders are imported.
In this application, the imported unit is defined as a group. You can specify a extraction destination folder for each group.
The default value is a temporary folder. In the case of a temporary folder, the folder is deleted at the end after the extraction is completed and the specified file is executed. If the extraction destination folder is not a temporary folder, you can choose whether or not to delete it at the end. The default value does not delete folder.
To designate where to extract the group item, switch the selection button (radio button) at the top to “Root folders”.
Then, you can change the extraction destination folder by combining two items “Folder type” and “Target folder”.
In “Folder type”, you can select several user folders (desktop, download folder, document folder, etc.) other than the temporary folder as the extraction destination root folder.
If you want to extract to the selected “folder type” subfolder, specify the subfolder name in the “Target folder” item. In this case, if it is “data” it will be extracted to the data folder. If it is “data\sub-data”, it will extract to the sub-data folder under the data folder.
In the final place where it will be extracted, the example of the extraction destination is shown in the rightmost item “sample path”.
If you want the user to select the final destination folder, select “Extract to user selected folder” in the item “Extracted folder operation” on the right item furthermore. This can be selected when “folder type” is other than “temporary folder”.
6. Screen 4 (Execution File): Set the file to be executed after extraction if necessary
You can set the file to be executed after extraction. This is an optional function, so you can omit it if you do not need to execute the file after extraction.
The settings are separately set when “When running on 32 bit Windows” and “When running on 64 bit Windows”.
Just setting the settings separately, there is no problem even if you set the same value.
Select the file to be executed from the pull-down selection box (combo box). You can only select file that is in the package.
If elevation is required forcibly when executing, select ☑”Elevation” item. However, you do not need to select here if the executable file has a behavior that elevates privileges as necessary.
7. Screen 5 (Extraction Restriction): Set extraction restriction if necessary
Set restriction of executing extraction. This is an optional function, so you can omit it if you do not need it.
As a basic function of File Package App, you can set two execution restrictions.
- Restrict execution by target Windows platform
- Restrict execution depending on whether digital signature is valid
The former can restrict execution depending on whether Windows is 32-bit platform or 64-bit platform. If you do not limit it, extract on either platform.
The latter verifies the validity of the digital signature of the package, and restricts execution if it is not valid. For example, restrict the execution when “the package has no digital signature”, “a digital signature uses an illegal certificate”, “the file has been tampered with”, and so on. When using this function, please note that it is mandatory to sign digital signature on the created package file.
8. Screen 6 (Package Creation): Create a package
When all settings are completed, create a package.
Select the “Browse” button and specify the package file name to be created.
After that, you can create a package by selecting the “Create package” button.
When package creation is completed, the folder containing the created package is opened in Explorer.
The above is how to create a package using basic functions and optional functions. There are more setting items when using extended functions.