-
Notifications
You must be signed in to change notification settings - Fork 3
Installer #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installer #2
Changes from all commits
8623c7c
376c8dc
79d61b4
104592d
af9b6e1
0251564
4c20949
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| Software License Agreement for Taskscape Ltd Salamander. | ||
|
|
||
| This is a legal agreement ("Agreement") between you (either an individual or | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please change to Taskscape Ltd instead of "ALTAP"
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
| an entity) and Taskscape Ltd, spol. s r.o. ("Taskscape Ltd") for the Taskscape Ltd software product | ||
| ("Software") with which this Agreement is provided, including associated | ||
| media, printed materials, and "online" or electronic documentation. The | ||
| term "Software" also shall include any updates or modified versions of the | ||
| Software provided to you by Taskscape Ltd. | ||
|
|
||
| The Software is protected by copyright and other intellectual property | ||
| laws and by international treaties. The Software is licensed, not sold. | ||
| The Software is designed and provided to you as a single product to be | ||
| used as a single product on computers. You are not required to use all | ||
| component parts of the Software, but you may not unbundle the component | ||
| parts of the Software for use on different computers. | ||
|
|
||
| By copying, installing or using all or any portion of the Software you | ||
| accept all the terms and conditions of this agreement. If you do not | ||
| agree to the terms of this Agreement, do not use the Software. | ||
|
|
||
| ADD-ON COMPONENTS | ||
| Taskscape Ltd Salamander may contain certain add-on components ("Plugins"), | ||
| e.g. PictView, FTP Client, or WinSCP plugin. You may install and use | ||
| Plugins solely as part of, and in conjunction with, the Software. You | ||
| may not use Plugins in any other manner, including using Plugins with | ||
| any other application. | ||
|
|
||
| LICENSE | ||
| The Software including all plugins can be used free of charge for both | ||
| commercial and non-commercial purposes. Software can be installed on one | ||
| or multiple computers, including virtual machines, and used by one or | ||
| multiple users. | ||
|
|
||
| ADDITIONAL LICENSE TERMS | ||
| Software may be freely distributed, provided the distribution package is | ||
| not modified. You may not charge any fee for the copy or use of the Software. | ||
| You must not represent in any way that you are licensing or selling the | ||
| Software itself. Your distribution of the evaluation Software will not | ||
| entitle you to any compensation from Taskscape Ltd. | ||
|
|
||
| The software may contain also several third party components, including open | ||
| source components, which are provided and licensed to you under the terms | ||
| and conditions of the respective third party licenses (see Third Party | ||
| Software Notices in thirdpty.txt). | ||
|
|
||
| RESTRICTIONS ON USE | ||
| You may not use, copy, emulate, clone, lease, sell, rent, sublicense, lend, | ||
| modify, decompile, disassemble, otherwise reverse engineer, or transfer the | ||
| Software, or any subset of the Software, except as provided for in this | ||
| Agreement. | ||
|
|
||
| EXCLUSION OF OTHER WARRANTIES | ||
| The software is provided "as is" without any express or implied warranty of | ||
| any kind, including warranties of merchantability, noninfringement, or | ||
| fitness for a particular purpose. You acknowledge that software cannot be | ||
| completely error-free. | ||
|
|
||
| LIMITATION OF LIABILITY | ||
| In no event shall Taskscape Ltd or its suppliers be liable for any damages whatsoever | ||
| (including, without limitation, lost profits, business interruption or lost | ||
| information) arising out of the use of or inability to use the Software, even | ||
| if Taskscape Ltd has been advised of the possibility of such damages. Taskscape Ltd's or its | ||
| suppliers' total cumulative liability to you arising from this agreement is | ||
| void. Some jurisdictions prohibit exclusion or limitation of liability for | ||
| implied warranties or consequential or incidental damages, so the above | ||
| limitation may not apply to you. You may also have other legal rights that | ||
| vary from jurisdiction to jurisdiction. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should never commit binary files. These should go to release (see github project releases)
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh okey |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| [Private] | ||
| ApplicationName=Salamander 5.0 | ||
| ApplicationNameVer=Salamander 5.0 | ||
| DefaultDirectory=C:\Program Files\Salamander 5.0 | ||
| LicenseFile=LICENSE | ||
| SkipChooseDirectory=0 | ||
|
|
||
| [CopyFiles] | ||
| salamand.exe,%1\salamand.exe,0 | ||
| salmon.exe,%1\salmon.exe,0 | ||
| lang\english.slg,%1\lang\english.slg,0 | ||
|
|
||
| [CreateShortcuts] | ||
| 0,Altap Salamander 5.0,%1\salamand.exe, | ||
| 1,Altap Salamander 5.0,%1\salamand.exe, |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| This is a marker file for x64 installation. |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this debug file is part of the installer task |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| #include "precomp.h" | ||
| #include <iostream> | ||
| #include <fstream> | ||
|
|
||
| // Forward declarations | ||
| void SalLog(const std::string& message); | ||
|
|
||
| // Dummy implementations of dependencies | ||
| // This is a simplified version of the actual classes and functions | ||
| // to allow the debug program to compile. | ||
|
|
||
| class CFilesWindow { | ||
| public: | ||
| BOOL BuildScriptDir(COperations* script, CActionType type, char* sourcePath, | ||
| BOOL sourcePathSupADS, char* targetPath, | ||
| CTargetPathState targetPathState, BOOL targetPathSupADS, | ||
| BOOL targetPathIsFAT32, char* mask, char* dirName, | ||
| char* dirDOSName, CAttrsData* attrsData, char* mapName, | ||
| DWORD sourceDirAttr, CChangeCaseData* chCaseData, BOOL firstLevelDir, | ||
| BOOL onlySize, BOOL fastDirectoryMove, CCriteriaData* filterCriteria, | ||
| BOOL* canDelUpperDirAfterMove, FILETIME* sourceDirTime, | ||
| DWORD srcAndTgtPathsFlags); | ||
| }; | ||
|
|
||
| // ... (other dummy implementations) | ||
|
|
||
| // Logging function | ||
| void SalLog(const std::string& message) { | ||
| std::ofstream logfile("move_debug_log.txt", std::ios_base::app); | ||
| if (logfile.is_open()) { | ||
| logfile << message << std::endl; | ||
| } | ||
| } | ||
|
|
||
| // Modified BuildScriptDir with logging | ||
| BOOL CFilesWindow::BuildScriptDir(COperations* script, CActionType type, char* sourcePath, | ||
| BOOL sourcePathSupADS, char* targetPath, | ||
| CTargetPathState targetPathState, BOOL targetPathSupADS, | ||
| BOOL targetPathIsFAT32, char* mask, char* dirName, | ||
| char* dirDOSName, CAttrsData* attrsData, char* mapName, | ||
| DWORD sourceDirAttr, CChangeCaseData* chCaseData, BOOL firstLevelDir, | ||
| BOOL onlySize, BOOL fastDirectoryMove, CCriteriaData* filterCriteria, | ||
| BOOL* canDelUpperDirAfterMove, FILETIME* sourceDirTime, | ||
| DWORD srcAndTgtPathsFlags) | ||
| { | ||
| std::string log_msg = "BuildScriptDir START: sourcePath=" + std::string(sourcePath) + ", targetPath=" + (targetPath ? std::string(targetPath) : "NULL") + ", dirName=" + std::string(dirName); | ||
| SalLog(log_msg); | ||
|
|
||
| // ... (original code from fileswn6.cpp) | ||
|
|
||
| // In a real implementation, you would copy the body of the function here. | ||
| // For this example, we will just simulate a recursive call. | ||
|
|
||
| // ... | ||
|
|
||
| log_msg = "BuildScriptDir END: sourcePath=" + std::string(sourcePath) + ", targetPath=" + (targetPath ? std::string(targetPath) : "NULL"); | ||
| SalLog(log_msg); | ||
|
|
||
| return TRUE; | ||
| } | ||
|
|
||
| int main(int argc, char* argv[]) { | ||
| if (argc != 3) { | ||
| std::cerr << "Usage: debug_move.exe <source_dir> <target_dir>" << std::endl; | ||
| return 1; | ||
| } | ||
|
|
||
| std::string source_dir = argv[1]; | ||
| std::string target_dir = argv[2]; | ||
|
|
||
| SalLog("Starting move operation from " + source_dir + " to " + target_dir); | ||
|
|
||
| // This is a simplified simulation of the file move process. | ||
| // In a real implementation, you would need to initialize the necessary | ||
| // objects and call the functions in the correct order. | ||
|
|
||
| CFilesWindow files_window; | ||
| COperations script; | ||
| // ... initialize script ... | ||
|
|
||
| char source_path[MAX_PATH * 2]; | ||
| char target_path[MAX_PATH * 2]; | ||
| strcpy_s(source_path, source_dir.c_str()); | ||
| strcpy_s(target_path, target_dir.c_str()); | ||
|
|
||
| files_window.BuildScriptDir(&script, atMove, source_path, FALSE, target_path, tpsUnknown, FALSE, FALSE, NULL, (char*)"test_dir", NULL, NULL, NULL, FILE_ATTRIBUTE_DIRECTORY, NULL, TRUE, FALSE, TRUE, NULL, NULL, NULL, 0); | ||
|
|
||
| SalLog("Move operation finished."); | ||
|
|
||
| return 0; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -749,23 +749,33 @@ void CFilesWindow::DrawBriefDetailedItem(HDC hTgtDC, int itemIndex, RECT* itemRe | |
| // search from the end for the character after which we can copy "..." and it fits in the column | ||
| while (fitChars > 0 && DrawItemAlpDx[fitChars - 1] + TextEllipsisWidth > textWidth) | ||
| fitChars--; | ||
| // copy a part of the original string to another buffer | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think removing those lines should be part of adding or updating the installer |
||
| int totalCount; | ||
| if (fitChars > 0) | ||
| { | ||
| memmove(DrawItemBuff, TransferBuffer, fitChars); | ||
| // and append "..." | ||
| memmove(DrawItemBuff + fitChars, "...", 3); | ||
| totalCount = fitChars + 3; | ||
| } | ||
| else | ||
| { | ||
| DrawItemBuff[0] = TransferBuffer[0]; | ||
| DrawItemBuff[1] = '.'; | ||
| totalCount = 2; | ||
| } | ||
|
|
||
| // DRAWFLAG_MASK: hack, under XP some stuff is added in font of the text in the mask while drawing short texts; not an issue if text is not drawn | ||
| // copy a part of the original string to another buffer | ||
| int totalCount; | ||
| CStrP wName(ConvertAllocUtf8ToWide(TransferBuffer, -1)); | ||
| if (wName != NULL) | ||
| { | ||
| if (fitChars > (int)wcslen(wName)) fitChars = (int)wcslen(wName); | ||
| wName[fitChars] = 0; | ||
| wcscat_s(wName, lstrlenW(wName) + 4, L"..."); | ||
| ConvertWideToUtf8(wName, -1, DrawItemBuff, 1024); | ||
| totalCount = (int)strlen(DrawItemBuff); | ||
| } | ||
| else | ||
| { | ||
| if (fitChars > 0) | ||
| { | ||
| memmove(DrawItemBuff, TransferBuffer, fitChars); | ||
| memmove(DrawItemBuff + fitChars, "...", 3); | ||
| totalCount = fitChars + 3; | ||
| } | ||
| else | ||
| { | ||
| DrawItemBuff[0] = TransferBuffer[0]; | ||
| DrawItemBuff[1] = '.'; | ||
| totalCount = 2; | ||
| } | ||
| } | ||
| // DRAWFLAG_MASK: hack, under XP some stuff is added in font of the text in the mask while drawing short texts; not an issue if text is not drawn | ||
| ExtTextOutUtf8(hDC, r.left + 2, y, ETO_OPAQUE, &adjR, DrawItemBuff, (drawFlags & DRAWFLAG_MASK) ? 0 : totalCount, NULL); | ||
| goto SKIP1; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be no folder "instalator" or it should have been empty. Files should be part of release (see GitHub project releases). There should be no Polish titles or comments because it is very expensive to locate them and remove.